*: clean up bool comparison
This commit is contained in:
@ -133,7 +133,7 @@ func (rc *raftNode) publishEntries(ents []raftpb.Entry) bool {
|
||||
|
||||
// openWAL returns a WAL ready for reading.
|
||||
func (rc *raftNode) openWAL() *wal.WAL {
|
||||
if wal.Exist(rc.waldir) == false {
|
||||
if !wal.Exist(rc.waldir) {
|
||||
if err := os.Mkdir(rc.waldir, 0750); err != nil {
|
||||
log.Fatalf("raftexample: cannot create dir for wal (%v)", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user