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 Oct 7, 2020
1 parent f701665 commit b415b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Expand Up @@ -3370,7 +3370,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:12])
ifd_data = tag_data[ifd_offset:]

Expand Down

0 comments on commit b415b04

Please sign in to comment.