mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-01 16:21:44 +08:00
fix possible nil
This commit is contained in:
parent
91e0a987e4
commit
17efa361f9
@ -120,9 +120,11 @@ func doUploadData(uploadUrl string, filename string, cipher bool, data []byte, i
|
|||||||
}, filename, contentIsGzipped, mtype, pairMap, jwt)
|
}, filename, contentIsGzipped, mtype, pairMap, jwt)
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadResult.Size = uint32(clearDataLen)
|
if uploadResult != nil {
|
||||||
if contentIsGzipped {
|
uploadResult.Size = uint32(clearDataLen)
|
||||||
uploadResult.Gzip = 1
|
if contentIsGzipped {
|
||||||
|
uploadResult.Gzip = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return uploadResult, err
|
return uploadResult, err
|
||||||
|
Loading…
Reference in New Issue
Block a user