Skip to content

Commit

Permalink
go vet stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Jul 31, 2015
1 parent 9147331 commit 28eac38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/reducers.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func asfloat32(i interface{}) float32 {
case string:
f, err := strconv.ParseFloat(i.(string), 32)
if err != nil {
return float32(0)
log.Println(err)
return float32(0)
}
return float32(f)
}
Expand Down
3 changes: 2 additions & 1 deletion http/serv.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
"log"
"net/http"
_ "net/http/pprof"
"os"

"github.com/BurntSushi/toml"
Expand Down Expand Up @@ -143,7 +144,7 @@ func Server() {
cfg := args[0]

if !xopen.Exists(cfg) {
fmt.Errorf("config not found %s", cfg)
log.Fatalf("config not found %s", cfg)
}

var config shared.Config
Expand Down
7 changes: 5 additions & 2 deletions vcfanno.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"
"log"
"os"
"runtime"
"strings"
"time"

Expand All @@ -24,10 +25,12 @@ const VERSION = "0.0.7"

func main() {
fmt.Fprintf(os.Stderr, `
vcfanno version %s
=============================================
vcfanno version %s [built with %s]
see: https://github.com/brentp/vcfanno
`, VERSION)
=============================================
`, VERSION, runtime.Version())

if len(os.Args) > 1 && os.Args[1] == "server" {
vhttp.Server()
Expand Down

0 comments on commit 28eac38

Please sign in to comment.