Browse Source

wal: simplify dir.Close call

Gyu-Ho Lee 9 years ago
parent
commit
ccb46d2024
1 changed files with 1 additions and 5 deletions
  1. 1 5
      wal/wal.go

+ 1 - 5
wal/wal.go

@@ -507,11 +507,7 @@ func (w *WAL) Close() error {
 		}
 	}
 
-	if err := w.dirFile.Close(); err != nil {
-		return err
-	}
-
-	return nil
+	return w.dirFile.Close()
 }
 
 func (w *WAL) saveEntry(e *raftpb.Entry) error {