mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
remove redundant None check (if var
does the same thing)
This commit is contained in:
parent
4f02b72c9c
commit
0f28663805
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user