Skip to content
Snippets Groups Projects
Commit f2c26243 authored by Ophestra's avatar Ophestra
Browse files

pass by reference in Remote.Handshake

parent 05a03d33
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ func (r *Remote) SingleUser() bool {
// Handshake checks if the server is still online and updates Remote.
func (r *Remote) Handshake() error {
if err := r.fetch(http.MethodGet, api.SingleUser, r.single, nil); err != nil {
if err := r.fetch(http.MethodGet, api.SingleUser, &r.single, nil); err != nil {
return err
}
return r.fetch(http.MethodGet, api.Base, r, nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment