small refactoring

This commit is contained in:
Chapuis Bertil 2015-09-06 17:45:08 +02:00
parent b4d923ab26
commit e85e6fab96

View file

@ -11,11 +11,6 @@ func Authorize(r *http.Request) error {
return errors.New("malformed basic auth credentials")
}
repo, err := RepositoryName(r.RequestURI)
if err != nil {
return err
}
if username != "user" || password != "pass" {
return errors.New("unknown user")
}