Skip to content
Snippets Groups Projects
Commit 87062fc9 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

moved an error that was in the wrong spot

parent 730c44f3
No related branches found
No related tags found
5 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!371[Channel RSAtoPrivate] Implement Reverse Asymmetric in Client/Broadcast,!354Channels impl,!340Project/channels
...@@ -10,7 +10,6 @@ package channels ...@@ -10,7 +10,6 @@ package channels
import ( import (
"bufio" "bufio"
"bytes" "bytes"
"github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"regexp" "regexp"
) )
...@@ -18,9 +17,6 @@ import ( ...@@ -18,9 +17,6 @@ import (
//based on emojis found at https://unicode.org/emoji/charts/full-emoji-list.html //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}]` 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 var compiledRegex *regexp.Regexp
// compile the regular expression in an init so it is only // compile the regular expression in an init so it is only
......
...@@ -20,4 +20,6 @@ var ( ...@@ -20,4 +20,6 @@ var (
"the passed private key does not match the channel") "the passed private key does not match the channel")
MessageTypeAlreadyRegistered = errors.New("the given message type has " + MessageTypeAlreadyRegistered = errors.New("the given message type has " +
"already been registered") "already been registered")
InvalidReaction = errors.New(
"The reaction is not valid, it must be a single emoji")
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment