mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 22:41:33 +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):
|
def validate_message(message):
|
||||||
if 'key' not in message:
|
return 'key' in message
|
||||||
return False
|
|
||||||
return True
|
|
||||||
|
|
||||||
|
|
||||||
def serialize_tfw_msg(message):
|
def serialize_tfw_msg(message):
|
||||||
|
Loading…
Reference in New Issue
Block a user