Skip to content

Commit

Permalink
Simplified code
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantin Kopachev <kkopachev@popsugar.com>
  • Loading branch information
radarhere and kkopachev committed Feb 21, 2021
1 parent 4b14f01 commit b25bc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Expand Up @@ -3390,7 +3390,7 @@ def get_ifd(self, tag):
if tag == 0x927C:
from .TiffImagePlugin import ImageFileDirectory_v2

if self._ifds[0x8769][tag][:8] == b"FUJIFILM":
if tag_data[:8] == b"FUJIFILM":
ifd_offset = i32le(tag_data, 8)
ifd_data = tag_data[ifd_offset:]

Expand Down

0 comments on commit b25bc40

Please sign in to comment.