Skip to content

Commit 8473929

Browse files
committed
Slight simplification.
1 parent 269d111 commit 8473929

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

couchdb/tools/replicate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ def main():
8989
all = sorted(i for i in source if i[0] != '_') # Skip reserved names.
9090
if not spath:
9191
raise parser.error('source database must be specified')
92-
else:
93-
databases = [(i, i) for i in all if fnmatch.fnmatchcase(i, spath)]
9492

93+
databases = [(i, i) for i in all if fnmatch.fnmatchcase(i, spath)]
9594
if not databases:
9695
raise parser.error("no source databases match glob '%s'" % spath)
9796

0 commit comments

Comments
 (0)