mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 12:41:45 +00:00
cleaner return after nil error
This commit is contained in:
parent
c5ed0be5f2
commit
4f44a2a11f
@ -100,9 +100,5 @@ func SetSystemProxy(state bool) error {
|
||||
}
|
||||
|
||||
err = key.SetDWordValue("proxyEnable", value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -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
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user