1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-28 08:06:24 -07:00

Refactor if expression

This commit is contained in:
deepsource-autofix[bot] 2022-01-17 07:37:47 +00:00 committed by GitHub
parent 35e469f58d
commit b484f7c969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ def compileOutIfs(text, flag):
doCompile = True
for i in lines:
if "#IF" in i:
doCompile = True if flag in i else False
doCompile = flag in i
elif "#ENDIF" in i:
doCompile = True
elif doCompile: