Skip to content

Commit 1c709bb

Browse files
Apply suggestions from code review
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent f015ed8 commit 1c709bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/loadsave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _signature_matches_extension(filename, sniff):
6060
sniff = fh.read(len(expected_signature))
6161
except OSError:
6262
return False, f"Could not read file: {filename}"
63-
if not sniff.startswith(expected_signature):
63+
if sniff.startswith(expected_signature):
6464
return True, ""
6565
format_name = signatures[ext]["format_name"]
6666
return False, f"File {filename} is not a {format_name} file"

0 commit comments

Comments
 (0)