about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-20 00:59:38 +0200
committerEmile <hanemile@protonmail.com>2019-10-20 00:59:38 +0200
commit2c5f6f4e7d3aa933273811c4606e9cb1d729682d (patch)
treebd5f16f30bda2d5023fae7077b404eb5c806a790
parent4f4317f59150588482779ab3e6f78cb4269bcd67 (diff)
dont need to hand over global vars
-rw-r--r--src/db.go2
1 files changed, 1 insertions, 1 deletions
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")