Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
umpc committed Jul 4, 2017
1 parent 3c30513 commit efa9a42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bounds.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (sm *SortedMap) boundsIdxSearch(lowerBound, upperBound interface{}) []int {
} else {
upperBoundIdx = sm.setBoundIdx(upperBound)
if upperBoundIdx < smLen-1 {
valFromIdx := sm.idx[sm.sorted[upperBoundIdx + 1]]
valFromIdx := sm.idx[sm.sorted[upperBoundIdx+1]]
if !sm.lessFn(valFromIdx, upperBound) && !sm.lessFn(upperBound, valFromIdx) {
upperBoundIdx++
}
Expand Down
3 changes: 1 addition & 2 deletions iter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ func TestBoundedIterFuncWithNoBoundsReturned(t *testing.T) {
t.Fatalf("TestBoundedIterFunc failed: %v", nilValErr)
}
return false
})
err != nil {
}); err != nil {
t.Fatal(err)
}
}
Expand Down

0 comments on commit efa9a42

Please sign in to comment.