Skip to content

Commit 6b01236

Browse files
Merge pull request #7 from spiegel-im-spiegel/fix-bugs
Fix: review from golangCI
2 parents 770edd1 + 839cce9 commit 6b01236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/aozora-bunko/facade/lookup-book.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var contentMap = map[ContentType]string{
3030

3131
func NewContent(s string) ContentType {
3232
for k, v := range contentMap {
33-
if strings.ToLower(s) == strings.ToLower(v) {
33+
if strings.EqualFold(s, v) {
3434
return k
3535
}
3636
}

0 commit comments

Comments
 (0)