From 87062fc937810352594c4fa0cd1e4555a7d34b80 Mon Sep 17 00:00:00 2001 From: Benjamin Wenger <ben@elixxir.ioo> Date: Tue, 30 Aug 2022 16:59:57 -0700 Subject: [PATCH] moved an error that was in the wrong spot --- channels/emoji.go | 4 ---- channels/errors.go | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/channels/emoji.go b/channels/emoji.go index f0bf81c8d..4e1e77d4d 100644 --- a/channels/emoji.go +++ b/channels/emoji.go @@ -10,7 +10,6 @@ package channels import ( "bufio" "bytes" - "github.com/pkg/errors" jww "github.com/spf13/jwalterweatherman" "regexp" ) @@ -18,9 +17,6 @@ import ( //based on emojis found at https://unicode.org/emoji/charts/full-emoji-list.html const findEmoji = `[\xA9\xAE\x{2000}-\x{3300}\x{1F000}-\x{1FBFF}]` -var InvalidReaction = errors.New( - "The reaction is not valid, it must be a single emoji") - var compiledRegex *regexp.Regexp // compile the regular expression in an init so it is only diff --git a/channels/errors.go b/channels/errors.go index dd941f86a..319f06596 100644 --- a/channels/errors.go +++ b/channels/errors.go @@ -20,4 +20,6 @@ var ( "the passed private key does not match the channel") MessageTypeAlreadyRegistered = errors.New("the given message type has " + "already been registered") + InvalidReaction = errors.New( + "The reaction is not valid, it must be a single emoji") ) -- GitLab