Logic checking for return codes is incorrect #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
not
has higher precedence than==
, so200
will always be compared withfalse
/true
.Fixed in
095614a6b6
if not result.completed or
is OKnot (result.code == 200)
can just beresult.code ~= 200
it's more idiomatic that way.I code in python more often than lua, so this caught me off guard too...
luaheck found that one, too, so I quickly fixed it :D
I'm not used to it either and I have no idea about python