jsvn: small optimization

This commit is contained in:
Josh Holtrop 2012-02-23 16:36:10 -05:00
parent 2288cb9a8a
commit 5730c1c7f3

2
jsvn
View File

@ -272,7 +272,7 @@ def add(argv, svn, out):
if len(argv) < 2: if len(argv) < 2:
# do not handle if no targets are passed # do not handle if no targets are passed
return RET_REEXEC 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 # do not handle if any options are passed
return RET_REEXEC return RET_REEXEC
# for each target specified, check if there are unversioned items # for each target specified, check if there are unversioned items