]> ruderich.org/simon Gitweb - nsscash/nsscash.git/commitdiff
nsscash: go fmt
authorSimon Ruderich <simon@ruderich.org>
Sat, 8 Jun 2019 10:40:35 +0000 (12:40 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 8 Jun 2019 10:41:32 +0000 (12:41 +0200)
main.go

diff --git a/main.go b/main.go
index 3b2dba8eac16e385fcebe8e4b9ab6f8e353dbe8d..e411da4bf9410fc177b4e21350c9e3f1ecacede8 100644 (file)
--- 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
        }