fix: ensure Error() is not nil
This commit is contained in:
parent
01029430cb
commit
b0a7566466
|
@ -51,7 +51,7 @@ func (s StorageServiceImpl) PutFile(file io.ReadSeeker, bucket string, generateP
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.IsError() {
|
if resp.IsError() && resp.Error() != nil {
|
||||||
return nil, resp.Error().(error)
|
return nil, resp.Error().(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue