diff --git a/irc/sqlite/history.go b/irc/sqlite/history.go index 2971d039..8737c15c 100644 --- a/irc/sqlite/history.go +++ b/irc/sqlite/history.go @@ -998,7 +998,7 @@ func (s *SQLite) ListChannels(cfchannels []string) (results []history.TargetList results = make([]history.TargetListing, 0, len(cfchannels)) for _, chname := range cfchannels { var nanotime int64 - err = s.selectChannelTime.QueryRowContext(ctx, chname).Scan(&nanotime) + err := s.selectChannelTime.QueryRowContext(ctx, chname).Scan(&nanotime) if err == sql.ErrNoRows { continue // channel has no messages, skip it }