mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
Code cleanup - simplify server side code. (#3870)
Fix all the issues reported by `gosimple` tool.
This commit is contained in:
@@ -569,7 +569,7 @@ func TestDoesV4PresignParamsExist(t *testing.T) {
|
||||
func TestParsePreSignV4(t *testing.T) {
|
||||
// converts the duration in seconds into string format.
|
||||
getDurationStr := func(expires int) string {
|
||||
return strconv.FormatInt(int64(expires), 10)
|
||||
return strconv.Itoa(expires)
|
||||
}
|
||||
// used in expected preSignValues, preSignValues.Date is of type time.Time .
|
||||
queryTime := time.Now().UTC()
|
||||
|
||||
Reference in New Issue
Block a user