From a3f316962d831644beffedf60c89852323622db7 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sat, 25 Jun 2016 08:38:58 +1000 Subject: [PATCH] Remove unneed expiry query from save function --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 3b3f7e3..a5f7368 100644 --- a/main.go +++ b/main.go @@ -89,11 +89,10 @@ func save(raw string, lang string, title string, expiry string) []string { check(err) sha := hash(raw) - query, err := db.Query("select id, title, hash, data, delkey, expiry from pastebin") + query, err := db.Query("select id, title, hash, data, delkey from pastebin") for query.Next() { var id, title, hash, paste, delkey string - var expiry time.Time - err := query.Scan(&id, &title, &hash, &paste, &delkey, &expiry) + err := query.Scan(&id, &title, &hash, &paste, &delkey) check(err) if hash == sha { url := ADDRESS + "/p/" + id