Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handlers/objects: Drop redundant nil check from
UploadContainerObject
According to the code, operand cannot be nil. Otherwise, the unconditional `io.CopyBuffer` call within the same method would be unsafe and removed if-condition only raised suspicions of potential panic. Deferred action is also moved "closer" to the file init. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
- Loading branch information