fix(metadata): correctly read metadata svc resp
This commit is contained in:
@@ -21,7 +21,7 @@ func (ms *metadataService) UserData() ([]byte, error) {
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
if resp/100 != 2 {
|
||||
if resp.StatusCode / 100 != 2 {
|
||||
return []byte{}, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user