build: ineffassign fixes. (#3134)

This commit is contained in:
Karthic Rao
2016-10-31 12:02:46 +05:30
committed by Harshavardhana
parent dd6ecf1193
commit 3e8cb8c937
4 changed files with 11 additions and 4 deletions

View File

@@ -789,7 +789,7 @@ func newTestStreamingSignedBadChunkDateRequest(method, urlStr string, contentLen
// skew the time between the chunk signature calculation and seed signature.
currTime = currTime.Add(1 * time.Second)
req, err = assembleStreamingChunks(req, body, chunkSize, secretKey, signature, currTime)
return req, nil
return req, err
}
// Returns new HTTP request object signed with streaming signature v4.
@@ -806,7 +806,7 @@ func newTestStreamingSignedRequest(method, urlStr string, contentLength, chunkSi
}
req, err = assembleStreamingChunks(req, body, chunkSize, secretKey, signature, currTime)
return req, nil
return req, err
}
// Replaces any occurring '/' in string, into its encoded