mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Remove unreachable code from ManualSchema (#5766)
ManualSchema.get_link had two return statements. Prune the second (unreachable) return.
This commit is contained in:
parent
78367ba102
commit
588b61e171
|
@ -456,8 +456,6 @@ class ManualSchema(ViewInspector):
|
||||||
description=self._description
|
description=self._description
|
||||||
)
|
)
|
||||||
|
|
||||||
return self._link
|
|
||||||
|
|
||||||
|
|
||||||
class DefaultSchema(object):
|
class DefaultSchema(object):
|
||||||
"""Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS setting"""
|
"""Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS setting"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user