small refactoring

This commit is contained in:
Chapuis Bertil
2015-09-06 17:44:42 +02:00
parent a6f9e71f95
commit b4d923ab26
3 changed files with 1 additions and 17 deletions

View File

@@ -20,9 +20,5 @@ func Authorize(r *http.Request) error {
return errors.New("unknown user")
}
if username != repo {
return errors.New("unauthorized")
}
return nil
}