fix some typos

This commit is contained in:
徐胖 2019-04-16 09:47:25 +08:00
parent 3883ee9614
commit 4d47ac1861
3 changed files with 3 additions and 3 deletions

View file

@ -125,7 +125,7 @@ func InjectRepository(
if err != nil {
log.WithError(err).Debugln("api: cannot cache repository permissions")
} else {
log.Debugln("api: repository permissions synchrnoized")
log.Debugln("api: repository permissions synchronized")
}
}

View file

@ -22,7 +22,7 @@ import (
"github.com/drone/drone/logger"
)
// HandleAuthentication returns an http.HandlerFunc middlewrae that authenticates
// HandleAuthentication returns an http.HandlerFunc middleware that authenticates
// the http.Request and errors if the account cannot be authenticated.
func HandleAuthentication(session core.Session) func(http.Handler) http.Handler {
return func(next http.Handler) http.Handler {

View file

@ -141,7 +141,7 @@ func HandleLogin(
user.Expiry = tok.Expires.Unix()
}
// If the user account has never been synchrnoized we
// If the user account has never been synchronized we
// execute the synchonrization logic.
if time.Unix(user.Synced, 0).Add(syncPeriod).Before(time.Now()) {
user.Syncing = true