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
|
infile = None
|
||||||
try:
|
try:
|
||||||
if opt.infile is not None:
|
if opt.infile:
|
||||||
infile = open(opt.infile, 'r')
|
infile = open(opt.infile, 'r')
|
||||||
except FileNotFoundError as e:
|
except FileNotFoundError as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user