handle error from NewStore

This commit is contained in:
Aaron Bieber 2020-05-13 16:56:47 -06:00
parent 6970e10e3e
commit c4a8205ebf

View File

@ -54,7 +54,7 @@ func main() {
var help = `^help: (\w+)$`
var helpRE = regexp.MustCompile(help)
var kvRE = regexp.MustCompile(`^(.+)\s->\s(.+)$`)
var store, err = NewStore(db)
store, err := NewStore(db)
if err != nil {
log.Fatalf("%s\n", err)
}