Skip to content

Commit

Permalink
CodeQL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Antsalacia committed Dec 2, 2024
1 parent f584b99 commit 40366a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion earthspy/earthspy.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ def get_raster_compression(self, raster_compression: Union[None, str]) -> str:
:return: Compression mode
"""

if raster_compression in ['DEFLATE','LZW','PACKBITS','JPEG', 'WEBP','LZMA','ZSTD']:
if raster_compression in ['DEFLATE','LZW','PACKBITS','JPEG',
'WEBP','LZMA','ZSTD']:
self.raster_compression = raster_compression

Check notice

Code scanning / CodeQL

Testing equality to None Note

Testing for None should use the 'is' operator.
elif raster_compression == None:
self.raster_compression = None
Expand Down

0 comments on commit 40366a1

Please sign in to comment.