1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-21 22:20:55 +00:00

Remove ineffectual assignments

Removed 3 lines due to warning from test suite saying these lines had innefectual assignments
This commit is contained in:
IamCathal 2020-08-24 20:54:55 +01:00
parent c5970766a3
commit c2471b22ad

View File

@ -130,17 +130,14 @@ func (c *aliLSWriter) WriteMsg(lm *logs.LogMsg) error {
if len(strs) == 2 {
pos := strings.LastIndex(strs[0], " ")
topic = strs[0][pos+1 : len(strs[0])]
content = strs[0][0:pos] + strs[1]
lg = c.groupMap[topic]
}
// send to empty Topic
if lg == nil {
content = lm.Msg
lg = c.group[0]
}
} else {
content = lm.Msg
lg = c.group[0]
}