diff --git a/proxy/util.go b/proxy/util.go index bbc1e7d..1984d65 100644 --- a/proxy/util.go +++ b/proxy/util.go @@ -100,9 +100,5 @@ func SetSystemProxy(state bool) error { } err = key.SetDWordValue("proxyEnable", value) - if err != nil { - return err - } - - return nil + return err } diff --git a/util/command.go b/util/command.go index a946fab..ae56898 100644 --- a/util/command.go +++ b/util/command.go @@ -32,11 +32,7 @@ func ReadyCmd() (*io.WriteCloser, func() error, error) { // Wait for command to flush err := cmd.Wait() - if err != nil { - return err - } - - return nil + return err }, nil }