Skip to content

Commit 439f6e7

Browse files
committed
simplify
1 parent 3e2bfc5 commit 439f6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+stdlib/file_checksum.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
method {mustBeTextScalar}
1818
end
1919

20-
if strcmp(method, "sha256") || strcmp(method, "SHA256")
20+
if any(strcmp(method, {'sha256', 'SHA256'}))
2121
method = "SHA-256";
2222
end
2323

0 commit comments

Comments
 (0)