Formatting
This commit is contained in:
parent
512a0834e0
commit
dae2d358bc
|
@ -30,7 +30,7 @@ type networkCheck struct {
|
||||||
|
|
||||||
// NewNetworkCheck returns a Plugin that when started will attempt various network tests
|
// NewNetworkCheck returns a Plugin that when started will attempt various network tests
|
||||||
func NewNetworkCheck(onion string, bus event.Manager, acn connectivity.ACN) Plugin {
|
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
|
return nc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,7 +240,7 @@ func checkCwtchProfileBackupFile(srcFile string) (string, error) {
|
||||||
profileFileType := parts[1]
|
profileFileType := parts[1]
|
||||||
|
|
||||||
_, hexErr := hex.DecodeString(dir)
|
_, 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")
|
return "", errors.New("invalid profile name")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue