Skip to content

Commit

Permalink
fixed Ruff SIM910 error
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Dec 15, 2023
1 parent cfd37bc commit fd3af40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pillow_heif/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _get_orientation_for_encoder(info: dict) -> int:

def _get_orientation_xmp(info: dict, exif_orientation: Optional[int], reset: bool = False) -> Optional[int]:
xmp_orientation = 1
if info.get("xmp", None):
if info.get("xmp"):
xmp_data = info["xmp"].rsplit(b"\x00", 1)
if xmp_data[0]:
decoded_xmp_data = None
Expand All @@ -129,7 +129,7 @@ def _get_orientation_xmp(info: dict, exif_orientation: Optional[int], reset: boo

def _get_orientation(info: dict, reset: bool = False) -> Optional[int]:
original_orientation = None
if info.get("exif", None):
if info.get("exif"):
try:
tif_tag = info["exif"]
skipped_exif00 = False
Expand Down

0 comments on commit fd3af40

Please sign in to comment.