about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--logging.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/logging.go b/logging.go
index cd05006..03773be 100644
--- a/logging.go
+++ b/logging.go
@@ -19,8 +19,7 @@ func initLogging(logChan <-chan struct{}) {
 		<-logChan
 		log.Printf("Closing log file ...")
 
-		err := logfile.Close()
-		if err != nil {
+		if err := logfile.Close(); err != nil {
 			log.SetOutput(os.Stderr)
 			log.Printf("Error closing log file: %s", err.Error())
 		}