add break
This commit is contained in:
parent
5827a7434b
commit
45fa8a0124
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ func (cmd *LinuxCommand) AddHandler(handler interface{}) error {
|
||||||
break
|
break
|
||||||
case func(data EventExitData) error:
|
case func(data EventExitData) error:
|
||||||
cmd.handlers[EventExit] = h
|
cmd.handlers[EventExit] = h
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
return ErrInvalidHandler
|
return ErrInvalidHandler
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue