fix: ensure Error() is not nil

This commit is contained in:
Derrick Hammer 2024-01-15 14:03:05 -05:00
parent 01029430cb
commit b0a7566466
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func (s StorageServiceImpl) PutFile(file io.ReadSeeker, bucket string, generateP
return nil, err
}
if resp.IsError() {
if resp.IsError() && resp.Error() != nil {
return nil, resp.Error().(error)
}