forked from External/ergo
fix some issues found with staticcheck.io
This commit is contained in:
parent
ce6a3e42df
commit
c193def606
9 changed files with 12 additions and 63 deletions
|
|
@ -538,14 +538,12 @@ func (client *Client) tryResume() (success bool) {
|
|||
func (client *Client) tryResumeChannels() {
|
||||
details := client.resumeDetails
|
||||
|
||||
channels := make([]*Channel, len(details.Channels))
|
||||
for _, name := range details.Channels {
|
||||
channel := client.server.channels.Get(name)
|
||||
if channel == nil {
|
||||
continue
|
||||
}
|
||||
channel.Resume(client, details.OldClient, details.Timestamp)
|
||||
channels = append(channels, channel)
|
||||
}
|
||||
|
||||
// replay direct PRIVSMG history
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue