Skip to content

Commit

Permalink
Fix unnecessary 'else if'
Browse files Browse the repository at this point in the history
  • Loading branch information
braintreeps committed Apr 2, 2018
1 parent a5a00f4 commit 97b1c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lease/lessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ func (le *lessor) findExpiredLeases(limit int) []*Lease {
if l == nil {
// lease has expired or been revoked, continue
continue
} else if time.Now().UnixNano() < item.expiration {
}
if time.Now().UnixNano() < item.expiration {
// Candidate expirations are caught up, reinsert this item
heap.Push(&le.leaseHeap, item)
break
Expand Down

0 comments on commit 97b1c02

Please sign in to comment.