Skip to content

Commit

Permalink
Run gofmt -s -w on codebase. (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr authored Apr 26, 2019
1 parent ab47b3b commit d7094b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dgraph/cmd/debug/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,8 @@ func parseWal(db *badger.DB) error {
}
}

for rid, _ := range rids {
for gid, _ := range gids {
for rid := range rids {
for gid := range gids {
fmt.Printf("Iterating with Raft Id = %d Groupd Id = %d\n", rid, gid)
store := raftwal.Init(db, rid, gid)
printRaft(store)
Expand Down
2 changes: 1 addition & 1 deletion posting/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ func (out *rollupOutput) removeEmptySplits() {
// safer than using out.plist.Splits directly.
func (out *rollupOutput) splits() []uint64 {
var splits []uint64
for startUid, _ := range out.parts {
for startUid := range out.parts {
splits = append(splits, startUid)
}
sortSplits(splits)
Expand Down
2 changes: 1 addition & 1 deletion posting/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ func TestMultiPartListWriteToDisk(t *testing.T) {
require.NoError(t, err)
require.Equal(t, commits, len(originalUids.Uids))
require.Equal(t, len(originalUids.Uids), len(newUids.Uids))
for i, _ := range originalUids.Uids {
for i := range originalUids.Uids {
require.Equal(t, originalUids.Uids[i], newUids.Uids[i])
}
}
Expand Down

0 comments on commit d7094b8

Please sign in to comment.