Skip to content

Commit

Permalink
[lint] refs #199 Catch error in linter
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed Jan 8, 2020
1 parent 2944e44 commit d0b8f30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ func init() {

cache := map[string]string{"lifeTime": valueLifeTime}

cacheBytes, _ := json.Marshal(cache)
cacheBytes, err := json.Marshal(cache)
if err != nil {
return
}
cacheOpt := NewOption("cache", []string{}, false, string(cacheBytes))

_ = confManager.RegisterSection("global", []*Option{cacheOpt})
Expand Down

0 comments on commit d0b8f30

Please sign in to comment.