mirror of https://github.com/MedzikUser/go-cdn
Fixed one lint error
This commit is contained in:
parent
c77de68966
commit
87933a3f92
|
@ -27,7 +27,7 @@ func API(link string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.SendMsg(s, disgord.Embed{
|
_, err = c.SendMsg(s, disgord.Embed{
|
||||||
Title: link,
|
Title: link,
|
||||||
Timestamp: disgord.Time{
|
Timestamp: disgord.Time{
|
||||||
Time: time.Now().UTC(),
|
Time: time.Now().UTC(),
|
||||||
|
@ -37,4 +37,8 @@ func API(link string) {
|
||||||
URL: link,
|
URL: link,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if common.CheckErr(err, "send msg") {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue