mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 12:15:13 +00:00
Simplify bool returning function
This commit is contained in:
@ -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):
|
||||||
|
Reference in New Issue
Block a user