accept code formatting suggestion

Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
This commit is contained in:
AlisterH 2022-11-22 13:38:30 +13:00 committed by GitHub
parent 3ea934a687
commit a53a8fea20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ class ExtractProjection(GdalAlgorithm):
outFileName = inFileName[0]
# this is not a good idea as it won't work with an extension like .jpeg
# outFileExt = '.' + inFileName[1][1:4:2] + 'w'
if ( len(inFileName[1]) < 4 ):
if (len(inFileName[1]) < 4):
outFileExt = '.wld'
else:
outFileExt = inFileName[1][0:2] + inFileName[1][-1] + 'w'