Skip to content

Commit

Permalink
wal: fix err shadowing (go vet)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho committed Sep 9, 2016
1 parent 0054e7e commit 7071370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wal/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func Create(dirpath string, metadata []byte) (*WAL, error) {
if _, err = f.Seek(0, os.SEEK_END); err != nil {
return nil, err
}
if err := fileutil.Preallocate(f.File, segmentSizeBytes, true); err != nil {
if err = fileutil.Preallocate(f.File, segmentSizeBytes, true); err != nil {
return nil, err
}

Expand Down

0 comments on commit 7071370

Please sign in to comment.