Skip to content

Commit

Permalink
clear_index(): remove unused "cleared" variable.
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Browning <[email protected]>
  • Loading branch information
rlbdv committed Feb 16, 2013
1 parent 41d973c commit d709d6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/index-cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ def check_index(reader):

def clear_index(indexfile):
indexfiles = [indexfile, indexfile + '.meta', indexfile + '.hlink']
cleared = False
for indexfile in indexfiles:
path = git.repo(indexfile)
try:
os.remove(path)
if opt.verbose:
log('clear: removed %s\n' % path)
cleared = True
except OSError, e:
if e.errno != errno.ENOENT:
raise
Expand Down

0 comments on commit d709d6e

Please sign in to comment.