Skip to content

Commit da49cfd

Browse files
author
Joel Collins
committed
Simpler comparison
1 parent 906a308 commit da49cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labthings/server/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def wrapper(*args, **kwargs):
221221
# If no data is there
222222
if not data:
223223
# If data is required
224-
if self.schema.required == True:
224+
if self.schema.required:
225225
# Abort
226226
return abort(400)
227227
# Otherwise, look for the schema fields 'missing' property

0 commit comments

Comments
 (0)