Post Azdf4LXXbjysBRH76e by anotherposter@shitposter.world
(DIR) More posts by anotherposter@shitposter.world
(DIR) Post #AzdetwqiYJ4Yi8Howq by anotherposter@shitposter.world
2025-10-27T15:32:59.501828Z
0 likes, 1 repeats
Hey @p, in this code, won't the inner err always get ignored (and the check is meaningless) ?err = d.Decode(t)if err == nil {if rsp.StatusCode > 399 {err = fmt.Errorf("Got HTTP %d getting token", rsp.StatusCode)}} else {return nil, err}err = a.VerifyToken(t)return t, err}
(DIR) Post #Azdf4LXXbjysBRH76e by anotherposter@shitposter.world
2025-10-27T15:34:52.045923Z
0 likes, 1 repeats
@p hopefully pre workserr = d.Decode(t)if err == nil {if rsp.StatusCode > 399 {err = fmt.Errorf("Got HTTP %d getting token", rsp.StatusCode)}} else {return nil, err}err = a.VerifyToken(t)return t, err}