jsvn: small optimization

This commit is contained in:
josh committed 2012-02-23 16:36:10 -05:00
1 parent 2288cb9a8a
commit 5730c1c7f3
1 file changed
+1 -1
+1 -1
View File
@@ -272,7 +272,7 @@ def add(argv, svn, out):
if len(argv) < 2:
# do not handle if no targets are passed
return RET_REEXEC
if True in map(lambda x: x.startswith('-'), argv):
if len(filter(lambda x: x.startswith('-'), argv)) != 0:
# do not handle if any options are passed
return RET_REEXEC
# for each target specified, check if there are unversioned items