You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should not return an error, since it will always yield nil it is useless.
The text was updated successfully, but these errors were encountered:
mdlayher
changed the title
net/http/cookiejar New() does not need an error as return argument
net/http/cookiejar: New does not need an error as return argument
Jan 17, 2017
Ok makes sense, but from a design point, the new method is not part of the interface. More complex storage implementations could still have their own New func with custom signature.
But well too late is too late, did not think about that.
go/src/net/http/cookiejar/jar.go
Line 77 in 92ecd78
Should not return an error, since it will always yield nil it is useless.
The text was updated successfully, but these errors were encountered: