From 2c5f6f4e7d3aa933273811c4606e9cb1d729682d Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 20 Oct 2019 00:59:38 +0200 Subject: dont need to hand over global vars --- src/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db.go') diff --git a/src/db.go b/src/db.go index c26e054..884a365 100644 --- a/src/db.go +++ b/src/db.go @@ -34,7 +34,7 @@ func dbGetName(db *sql.DB) string { } // getAllChallenges gets all the challenges from the server -func dbGetAllChallenges(db *sql.DB) []Challenge { +func dbGetAllChallenges() []Challenge { // build the query query := fmt.Sprintf("SELECT * FROM challenges") -- cgit 1.4.1