mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Simplfying code in api, round 1. Decoupling functions which both write headers and data.
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ var errorCodeResponse = map[int]Error{
|
||||
}
|
||||
|
||||
// errorCodeError provides errorCode to Error. It returns empty if the code provided is unknown
|
||||
func errorCodeError(code int) Error {
|
||||
func getErrorCode(code int) Error {
|
||||
return errorCodeResponse[code]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user