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

diff --git a/main.go b/main.go
index db21997fee0cf71bdcfe5ed2836b7b092ea5b10b..7a8755cac1df9d5cd4ffd2ff259b2e15c4e95b07 100644 (file)
--- a/main.go
+++ b/main.go
@@ -86,14 +86,14 @@ func main() {
                if t == FileTypePlain {
                        x.Write(src)
                } else if t == FileTypePasswd {
-               pws, err := ParsePasswds(bytes.NewReader(src))
-               if err != nil {
-                       log.Fatal(err)
-               }
-               err = SerializePasswds(&x, pws)
-               if err != nil {
-                       log.Fatal(err)
-               }
+                       pws, err := ParsePasswds(bytes.NewReader(src))
+                       if err != nil {
+                               log.Fatal(err)
+                       }
+                       err = SerializePasswds(&x, pws)
+                       if err != nil {
+                               log.Fatal(err)
+                       }
                } else {
                        log.Fatalf("unsupported file type %v", t)
                }