From b1ef2d9f91762f83488ff20d61ec3e915fe9ae57 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 29 Apr 2020 16:53:23 +0200 Subject: [PATCH] Fix typo --- src/entities/BaseRequestsHandler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entities/BaseRequestsHandler.ts b/src/entities/BaseRequestsHandler.ts index 5f8fdd9..1eeb8ce 100644 --- a/src/entities/BaseRequestsHandler.ts +++ b/src/entities/BaseRequestsHandler.ts @@ -415,12 +415,12 @@ export abstract class BaseRequestsHandler implements AbstractUserConnectionConta * @param name The name of the POST field containing the id of the emoji */ public postEmojiShortcut(name: string) : string { - const emojiShorcut = this.postString(name); + const emojiShortcut = this.postString(name); - if(!checkEmojiCode(emojiShorcut)) + if(!checkEmojiCode(emojiShortcut)) this.error(401, "Invalid emoji specified at " + name + "!") - return emojiShorcut; + return emojiShortcut; } /**