Skip to content

Commit da1906f

Browse files
committed
error return values also unnecessary here
1 parent 2cbf58d commit da1906f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

netrc/netrc.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,24 +169,21 @@ func (m *Machine) IsDefault() bool {
169169
}
170170

171171
// UpdatePassword sets the password for the Machine m.
172-
func (m *Machine) UpdatePassword(newpass string) error {
172+
func (m *Machine) UpdatePassword(newpass string) {
173173
m.Password = newpass
174174
updateTokenValue(m.passtoken, newpass)
175-
return nil
176175
}
177176

178177
// UpdateLogin sets the login for the Machine m.
179-
func (m *Machine) UpdateLogin(newlogin string) error {
178+
func (m *Machine) UpdateLogin(newlogin string) {
180179
m.Login = newlogin
181180
updateTokenValue(m.logintoken, newlogin)
182-
return nil
183181
}
184182

185183
// UpdateAccount sets the login for the Machine m.
186-
func (m *Machine) UpdateAccount(newaccount string) error {
184+
func (m *Machine) UpdateAccount(newaccount string) {
187185
m.Account = newaccount
188186
updateTokenValue(m.accounttoken, newaccount)
189-
return nil
190187
}
191188

192189
func updateTokenValue(t *token, value string) {

0 commit comments

Comments
 (0)