From f0acc4e357bb76c195b9ef9c8a7392c13ac15603 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 10 Dec 2019 13:49:41 -0500 Subject: [PATCH] remove some extra db.Close calls --- util.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/util.go b/util.go index 26eed8f..cf9b407 100644 --- a/util.go +++ b/util.go @@ -105,7 +105,6 @@ func initdb() { return } } - defer db.Close() r := bufio.NewReader(os.Stdin) err = createuser(db, r) @@ -208,7 +207,6 @@ func adduser() { return } - db.Close() os.Exit(0) }