diff options
author | Emile <hanemile@protonmail.com> | 2019-10-20 00:59:38 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-20 00:59:38 +0200 |
commit | 2c5f6f4e7d3aa933273811c4606e9cb1d729682d (patch) | |
tree | bd5f16f30bda2d5023fae7077b404eb5c806a790 /src | |
parent | 4f4317f59150588482779ab3e6f78cb4269bcd67 (diff) |
dont need to hand over global vars
Diffstat (limited to 'src')
-rw-r--r-- | src/db.go | 2 |
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") |