1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-08-13 19:52:52 +02:00

Remove var-declaration errors

This commit is contained in:
David Landry
2018-10-05 17:04:48 -04:00
parent 31cb7c2762
commit 31c31247ac
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ type (
) )
var ( var (
//revive:disable-next-line var-declaration
AndType LogicalOperatorType = 0 AndType LogicalOperatorType = 0
OrType LogicalOperatorType = 1 OrType LogicalOperatorType = 1
NotType LogicalOperatorType = 2 NotType LogicalOperatorType = 2

View File

@@ -87,7 +87,7 @@ func (broker *EventBroker) RemoveEventListener(event string, listener EventListe
return return
} }
var modifiedListeners []EventListener = nil var modifiedListeners []EventListener
if len(listeners) > 1 { if len(listeners) > 1 {
modifiedListeners = append(listeners[:idx], listeners[idx+1:]...) modifiedListeners = append(listeners[:idx], listeners[idx+1:]...)
@@ -114,7 +114,7 @@ func (broker *EventBroker) Start() error {
for { for {
for name, event := range broker.events { for name, event := range broker.events {
counter += 1 counter++
select { select {
case <-ctx.Done(): case <-ctx.Done():