From 123a05bb2f6538da064c6a3a7fbbe7e7e8f7f19e Mon Sep 17 00:00:00 2001 From: afdolriski Date: Mon, 13 Jan 2020 19:54:49 +0700 Subject: [PATCH] fix error checking --- database/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/database.go b/database/database.go index afa5bbd..640e75d 100644 --- a/database/database.go +++ b/database/database.go @@ -28,7 +28,7 @@ func init() { er(err) } - byteFile, _ := ioutil.ReadAll(file) + byteFile, err := ioutil.ReadAll(file) if err != nil { er(err) }