Skip to content

Commit 588b61e

Browse files
jlainecarltongibson
authored andcommitted
Remove unreachable code from ManualSchema (#5766)
ManualSchema.get_link had two return statements. Prune the second (unreachable) return.
1 parent 78367ba commit 588b61e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rest_framework/schemas/inspectors.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,6 @@ def get_link(self, path, method, base_url):
456456
description=self._description
457457
)
458458

459-
return self._link
460-
461459

462460
class DefaultSchema(object):
463461
"""Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS setting"""

0 commit comments

Comments
 (0)