diff --git a/app/plugins/networkCheck.go b/app/plugins/networkCheck.go index 9ce1f60..a38260c 100644 --- a/app/plugins/networkCheck.go +++ b/app/plugins/networkCheck.go @@ -18,19 +18,19 @@ const NetworkCheckSuccess = "Success" // networkCheck is a convenience plugin for testing high level availability of onion services type networkCheck struct { - bus event.Manager - queue event.Queue - onion string - acn connectivity.ACN - breakChan chan bool - running bool - offline bool - offlineLock sync.Mutex + bus event.Manager + queue event.Queue + onion string + acn connectivity.ACN + breakChan chan bool + running bool + offline bool + offlineLock sync.Mutex } // NewNetworkCheck returns a Plugin that when started will attempt various network tests func NewNetworkCheck(onion string, bus event.Manager, acn connectivity.ACN) Plugin { - nc := &networkCheck{onion:onion, bus: bus, acn: acn, queue: event.NewQueue(), breakChan: make(chan bool, 1)} + nc := &networkCheck{onion: onion, bus: bus, acn: acn, queue: event.NewQueue(), breakChan: make(chan bool, 1)} return nc } diff --git a/peer/storage.go b/peer/storage.go index 68db73b..af87888 100644 --- a/peer/storage.go +++ b/peer/storage.go @@ -240,7 +240,7 @@ func checkCwtchProfileBackupFile(srcFile string) (string, error) { profileFileType := parts[1] _, hexErr := hex.DecodeString(dir) - if dir == "." || dir == ".." || len(dir) !=32 || hexErr != nil { + if dir == "." || dir == ".." || len(dir) != 32 || hexErr != nil { return "", errors.New("invalid profile name") }