Fix spelling using misspell

This commit is contained in:
eikendev 2023-04-01 17:24:48 +02:00
parent 50a92b6d22
commit 5e640800fe
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
6 changed files with 16 additions and 16 deletions

View file

@ -13,7 +13,7 @@ import (
func GetApplication(ctx *gin.Context) *model.Application {
app, ok := ctx.MustGet("app").(*model.Application)
if app == nil || !ok {
ctx.AbortWithError(http.StatusInternalServerError, errors.New("an error occured while retrieving application from context"))
ctx.AbortWithError(http.StatusInternalServerError, errors.New("an error occurred while retrieving application from context"))
return nil
}
@ -24,7 +24,7 @@ func GetApplication(ctx *gin.Context) *model.Application {
func GetUser(ctx *gin.Context) *model.User {
user, ok := ctx.MustGet("user").(*model.User)
if user == nil || !ok {
ctx.AbortWithError(http.StatusInternalServerError, errors.New("an error occured while retrieving user from context"))
ctx.AbortWithError(http.StatusInternalServerError, errors.New("an error occurred while retrieving user from context"))
return nil
}