remove redundant None check (if var does the same thing)

This commit is contained in:
yun saki 2022-08-26 12:43:13 +02:00
parent 4f02b72c9c
commit 0f28663805

View File

@ -66,7 +66,7 @@ def main():
infile = None
try:
if opt.infile is not None:
if opt.infile:
infile = open(opt.infile, 'r')
except FileNotFoundError as e:
print(e)