Refactor unnecessary else
/ elif
when if
block has a continue
statement
Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
parent
910e15b174
commit
45da3a7022
@ -72,6 +72,5 @@ def copy_sample_files(directory: Path, overwrite: bool = False) -> None:
|
|||||||
if not overwrite:
|
if not overwrite:
|
||||||
logger.warning(f"File `{targetfile}` exists already, not deploying sample file.")
|
logger.warning(f"File `{targetfile}` exists already, not deploying sample file.")
|
||||||
continue
|
continue
|
||||||
else:
|
logger.warning(f"File `{targetfile}` exists already, overwriting.")
|
||||||
logger.warning(f"File `{targetfile}` exists already, overwriting.")
|
|
||||||
shutil.copy(str(sourcedir / source), str(targetfile))
|
shutil.copy(str(sourcedir / source), str(targetfile))
|
||||||
|
Loading…
Reference in New Issue
Block a user