1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 04:30: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 { if len(strs) == 2 {
pos := strings.LastIndex(strs[0], " ") pos := strings.LastIndex(strs[0], " ")
topic = strs[0][pos+1 : len(strs[0])] topic = strs[0][pos+1 : len(strs[0])]
content = strs[0][0:pos] + strs[1]
lg = c.groupMap[topic] lg = c.groupMap[topic]
} }
// send to empty Topic // send to empty Topic
if lg == nil { if lg == nil {
content = lm.Msg
lg = c.group[0] lg = c.group[0]
} }
} else { } else {
content = lm.Msg
lg = c.group[0] lg = c.group[0]
} }