Closed xeon-zolt closed 5 years ago
I don't understand why you have to write:
return [False, True][api_response.status_code == 200]
Isn't this better:
return (api_response.status_code == 200)
I was reading the code and just thought why not
Didn't read @hongquan 's suggestion before approval. Either one looks good to me.
Please use
return (api_response.status_code == 200)
the index arraying approach is unreadable!
Thanks, merged.
changed an if else condition to a one-liner
Fixes #
Checklist
Test Passing
Short description of what this resolves:
just converted if else to a oneliner
Changes proposed in this pull request:
reduced no of lines in the code