1
0
Fork 0
forked from External/ergo

fix some issues found with staticcheck.io

This commit is contained in:
Shivaram Lingamneni 2019-05-10 01:44:14 -04:00
parent ce6a3e42df
commit c193def606
9 changed files with 12 additions and 63 deletions

View file

@ -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