Skip to content

Commit c4a3cd7

Browse files
author
navetacandra
committed
refac: remove unused comment
1 parent 02ee3e4 commit c4a3cd7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

server/server.go

-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ func serviceRpc(hr HandlerReq) {
135135
username, password, authok := r.BasicAuth()
136136
user := FindUser(username)
137137
if authok {
138-
// Check is user has access to repository
139138
if user.Username != "" && user.Password != "" {
140139
requestRepo := strings.Replace(dir, DefaultConfig.ProjectRoot, "", 1)
141140
allow := false
@@ -242,7 +241,6 @@ func getInfoRefs(hr HandlerReq) {
242241
return
243242
}
244243

245-
// Check user credential
246244
user := FindUser(username)
247245
if authok && !(username == user.Username && password == user.Password) {
248246
w.WriteHeader(http.StatusUnauthorized)

0 commit comments

Comments
 (0)