Skip to content

Commit

Permalink
fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEischer committed Jun 2, 2023
1 parent 76d61c4 commit 5d60e02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/index/associated_data.go
Expand Up @@ -50,10 +50,9 @@ func (a *AssociatedData[T]) Get(bh restic.BlobHandle) (T, bool) {
has := bt.isSet[idx]
if has {
return bt.value[idx], has
} else {
var zero T
return zero, false
}
var zero T
return zero, false
}

func (a *AssociatedData[T]) Has(bh restic.BlobHandle) bool {
Expand Down

0 comments on commit 5d60e02

Please sign in to comment.