Skip to content

Commit

Permalink
Remove unreachable code from ManualSchema (encode#5766)
Browse files Browse the repository at this point in the history
ManualSchema.get_link had two return statements. Prune the second
(unreachable) return.
  • Loading branch information
jlaine authored and carltongibson committed Jan 24, 2018
1 parent 78367ba commit 588b61e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rest_framework/schemas/inspectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,6 @@ def get_link(self, path, method, base_url):
description=self._description
)

return self._link


class DefaultSchema(object):
"""Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS setting"""
Expand Down

0 comments on commit 588b61e

Please sign in to comment.