mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 16:51:31 +00:00
Simplify bool returning function
This commit is contained in:
parent
39243811dc
commit
986a67f5db
@ -25,9 +25,7 @@ import json
|
||||
|
||||
|
||||
def validate_message(message):
|
||||
if 'key' not in message:
|
||||
return False
|
||||
return True
|
||||
return 'key' in message
|
||||
|
||||
|
||||
def serialize_tfw_msg(message):
|
||||
|
Loading…
Reference in New Issue
Block a user