From: Simon Ruderich Date: Sat, 8 Jun 2019 10:40:35 +0000 (+0200) Subject: nsscash: go fmt X-Git-Tag: 0.1~95 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=077a47c880ccf8c46dd7c9db220cfac41d60427b;p=nsscash%2Fnsscash.git nsscash: go fmt --- diff --git a/main.go b/main.go index 3b2dba8..e411da4 100644 --- a/main.go +++ b/main.go @@ -46,24 +46,24 @@ func main() { break } - cfg, err := LoadConfig(args[1]) - if err != nil { - log.Fatal(err) - } - state, err := LoadState(cfg.StatePath) - if err != nil { - log.Fatal(err) - } + cfg, err := LoadConfig(args[1]) + if err != nil { + log.Fatal(err) + } + state, err := LoadState(cfg.StatePath) + if err != nil { + log.Fatal(err) + } - err = handleFiles(cfg, state) - if err != nil { - log.Fatal(err) - } + err = handleFiles(cfg, state) + if err != nil { + log.Fatal(err) + } - err = WriteStateIfChanged(cfg.StatePath, state) - if err != nil { - log.Fatal(err) - } + err = WriteStateIfChanged(cfg.StatePath, state) + if err != nil { + log.Fatal(err) + } return }