mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-03 16:34:33 +00:00
Unnecessary use of fmt.Sprintf
This commit is contained in:
@@ -1046,7 +1046,7 @@ func putUpdateBranchCB(rsp http.ResponseWriter, r *http.Request) *appError {
|
||||
}
|
||||
|
||||
if includeInvalidPath(base, newCommit) {
|
||||
msg := fmt.Sprintf("Dir or file name is ..")
|
||||
msg := "Dir or file name is .."
|
||||
return &appError{nil, msg, http.StatusBadRequest}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user