Skip to content

Commit c2767c0

Browse files
committed
Satisfy linter
1 parent cf13439 commit c2767c0

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

card.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -220,22 +220,14 @@ func (card *Card) formatCardForSlack() string {
220220
if len(card.CardFaces) > 0 {
221221
for _, cf := range card.CardFaces {
222222
var r []string
223-
//if len(card.MultiverseIds) == 0 {
224223
r = append(r, fmt.Sprintf("*<%s|%s>*", card.ScryfallURI, nco(cf.PrintedName, cf.Name)))
225-
//} else {
226-
// r = append(r, fmt.Sprintf("*<http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=%v|%v>*", card.MultiverseIds[0], nco(cf.PrintedName, cf.Name)))
227-
//}
228224
r = append(r, cf.CommonCard.getCardOrFaceAsString("slack")...)
229225
s = append(s, strings.Join(r, " "))
230226
}
231227
return strings.Join(s, "\n")
232228
}
233229

234-
//if len(card.MultiverseIds) == 0 {
235230
s = append(s, fmt.Sprintf("*<%s|%s>*", card.ScryfallURI, nco(card.PrintedName, card.Name)))
236-
//} else {
237-
// s = append(s, fmt.Sprintf("*<http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=%v|%v>*", card.MultiverseIds[0], nco(card.PrintedName, card.Name)))
238-
//}
239231
s = append(s, card.CommonCard.getCardOrFaceAsString("slack")...)
240232
if card.Reserved {
241233
s = append(s, "· [RL] ·")

utils.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ var (
2222
//Stuff pared from main.go
2323
botCommandRegex = regexp.MustCompile(`[!&]([^=!&?[)][^!&?[)]+)\.\s|[!&]([^=!&?[)][^!&?[)]+)|\[\[(.*?)\]\]`)
2424
singleQuotedWord = regexp.MustCompile(`^(?:"\w+"|'\w+')$`)
25-
nonTextRegex = regexp.MustCompile(`^\W+$`)
2625
wordEndingInBang = regexp.MustCompile(`!["'] |\n+`)
2726
wordStartingWithBang = regexp.MustCompile(`\s+! *\S+`)
2827

@@ -186,15 +185,15 @@ func getExitChannel() chan os.Signal {
186185
// A dumb function that returns the minimum of two ints
187186
// with the restriction that the result will try to be bigger than
188187
// a third given value.
189-
func cappedMin(a, b, c int) int {
188+
/* func cappedMin(a, b, c int) int {
190189
if a < b && a > c {
191190
return a
192191
}
193192
if b < a && b > c {
194193
return b
195194
}
196195
return max(a, b)
197-
}
196+
} */
198197

199198
func dumpCardCacheTimer(conf *configuration, cache *lru.ARCCache) {
200199
for {

0 commit comments

Comments
 (0)