cleaner return after nil error

This commit is contained in:
Baipyrus 2024-08-31 21:11:54 +02:00
parent c5ed0be5f2
commit 4f44a2a11f
2 changed files with 2 additions and 10 deletions

View File

@ -100,9 +100,5 @@ func SetSystemProxy(state bool) error {
}
err = key.SetDWordValue("proxyEnable", value)
if err != nil {
return err
}
return nil
}

View File

@ -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
}