aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/datamaps/main.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-23 21:03:51 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-23 21:03:51 +0100
commit576f3ce5353e1e8064959cb4c61f80a78a988a6f (patch)
tree8941c715714934327138f597ef87315add3ded13 /cmd/datamaps/main.go
parent4c8294bcbeb45ce93a74ad963a346cf69ccbc398 (diff)
tests passing
Diffstat (limited to 'cmd/datamaps/main.go')
-rw-r--r--cmd/datamaps/main.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/datamaps/main.go b/cmd/datamaps/main.go
index 9e87869..32b7ce8 100644
--- a/cmd/datamaps/main.go
+++ b/cmd/datamaps/main.go
@@ -58,8 +58,7 @@ func main() {
switch opts.Command {
case "datamap":
- err := datamaps.DatamapToDB(opts)
- if err != nil {
+ if err := datamaps.DatamapToDB(opts); err != nil {
log.Fatal(err)
}
case "setup":
@@ -78,7 +77,6 @@ func main() {
// w.Write([]byte("Hello from datamaps"))
})
log.Println("Starting server on :8080")
- err := http.ListenAndServe(":8080", nil)
- log.Fatal(err)
+ log.Fatal(http.ListenAndServe(":8080", nil))
}
}