Skip to content

Commit bfd05c8

Browse files
Merge pull request github#335 from jparise/find-lfs-extensions-argv
Correct the argv test for user-supplied arguments
2 parents 297762a + 2e63399 commit bfd05c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/git-find-lfs-extensions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import os
2828
import sys
2929

3030
# Threshold that defines a large file
31-
if len(sys.argv):
31+
if len(sys.argv) > 1:
3232
THRESHOLD_IN_MB = float(sys.argv[1]) / 1024
3333
else:
3434
THRESHOLD_IN_MB = 0.5

0 commit comments

Comments
 (0)