diff --git a/internal/db/polls.go b/internal/db/polls.go index 51cf5c5..a376bab 100644 --- a/internal/db/polls.go +++ b/internal/db/polls.go @@ -59,7 +59,7 @@ func AddPollOptionText(msgID string, text string) error { if strings.Contains(text, "\x1F") { return errors.New("option string cannot contain unit separator") } - + var optText string err := db.QueryRow("SELECT opt_text FROM polls WHERE msg_id = ?", msgID).Scan(&optText) if err != nil { diff --git a/internal/systems/about/about.go b/internal/systems/about/about.go index 9f79454..c949bd9 100644 --- a/internal/systems/about/about.go +++ b/internal/systems/about/about.go @@ -51,7 +51,8 @@ func getCommit() string { if !ok { return "``" } - var commit = "``" + + commit := "``" for _, setting := range info.Settings { switch setting.Key { case "vcs.revision": @@ -62,5 +63,6 @@ func getCommit() string { } } } + return commit }