1
0
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:
杨赫然
2024-11-20 16:31:19 +08:00
parent d727249a08
commit 2f68e9d79a

View File

@@ -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}
}