Update mantle/cmd/ore/ibmcloud/upload.go
@@ -86,8 +86,7 @@ func runUpload(cmd *cobra.Command, args []string) error {
// check if the s3 bucket exists
// create s3 client
- err = API.NewS3Client(uploadCloudObjectStorage, region)
- if err != nil {
+ if err := API.NewS3Client(uploadCloudObjectStorage, region); err != nil {
return err
}
