Skip to content

Commit ec8c5d4

Browse files
committed
lint: golangci: fix
1 parent 73f92a2 commit ec8c5d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

handlers/help/help.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func buildPost(bot *groupbot.Groupbot) rc.GlipCreatePost {
9494
attachment.Fields = append(attachment.Fields,
9595
rc.GlipMessageAttachmentFieldsInfo{
9696
Title: infoURL.Text,
97-
Value: UrlToMarkdownLinkHostname(infoURL.URL),
97+
Value: URLToMarkdownLinkHostname(infoURL.URL),
9898
Style: "Short",
9999
})
100100
}
@@ -136,7 +136,7 @@ func buildPost(bot *groupbot.Groupbot) rc.GlipCreatePost {
136136
return reqBody
137137
}
138138

139-
func UrlToMarkdownLinkHostname(url string) string {
139+
func URLToMarkdownLinkHostname(url string) string {
140140
rx := regexp.MustCompile(`(?i)^https?://([^/]+)(/[^/])`)
141141
m := rx.FindStringSubmatch(url)
142142
if len(m) > 1 {

0 commit comments

Comments
 (0)