Skip to content

Commit

Permalink
Removed redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 15, 2020
1 parent 35be7d4 commit c0cc537
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions labthings/server/view/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ def _get(self, path):
return send_from_directory(static_folder, path)

# Generate a basic property class
generated_class = type(name, (View, object), {})

if static_folder:
generated_class.get = _get
generated_class = type(name, (View, object), {"get": _get})

return generated_class

0 comments on commit c0cc537

Please sign in to comment.