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:
parent
31cb7c2762
commit
31c31247ac
@ -15,6 +15,7 @@ type (
|
||||
)
|
||||
|
||||
var (
|
||||
//revive:disable-next-line var-declaration
|
||||
AndType LogicalOperatorType = 0
|
||||
OrType LogicalOperatorType = 1
|
||||
NotType LogicalOperatorType = 2
|
||||
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user