1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-03-03 15:02:32 +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 (
//revive:disable-next-line var-declaration
AndType LogicalOperatorType = 0
OrType LogicalOperatorType = 1
NotType LogicalOperatorType = 2

View File

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