mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 23:00: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:
parent
c5970766a3
commit
c2471b22ad
@ -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]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user