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

@ -12,7 +12,7 @@ import (
func getID(ctx *gin.Context) (uint, error) {
id, ok := ctx.MustGet("id").(uint)
if !ok {
err := errors.New("an error occured while retrieving ID from context")
err := errors.New("an error occurred while retrieving ID from context")
ctx.AbortWithError(http.StatusInternalServerError, err)
return 0, err
}
@ -23,7 +23,7 @@ func getID(ctx *gin.Context) (uint, error) {
func getMessageID(ctx *gin.Context) (string, error) {
id, ok := ctx.MustGet("messageid").(string)
if !ok {
err := errors.New("an error occured while retrieving messageID from context")
err := errors.New("an error occurred while retrieving messageID from context")
ctx.AbortWithError(http.StatusInternalServerError, err)
return "", err
}