Skip to content

Commit

Permalink
fix source reinsertion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shariq committed Aug 23, 2017
1 parent 7956405 commit 68d4659
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def add_to_firebase_json(firebase_path, new_rewrites):
for new_rewrite in new_rewrites:
for existing_rewrite in existing_rewrites[:]:
if existing_rewrite['destination'] == new_rewrite['destination']:
if existing_rewrite['source'] == new_rewrite['source']:
continue
print 'warning: removing', existing_rewrite
existing_rewrites.remove(existing_rewrite)
elif existing_rewrite['source'] == new_rewrite['source']:
Expand Down

0 comments on commit 68d4659

Please sign in to comment.