add break

This commit is contained in:
Shane C 2024-09-19 11:05:25 -04:00
parent 5827a7434b
commit 45fa8a0124
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

@ -43,6 +43,7 @@ func (cmd *LinuxCommand) AddHandler(handler interface{}) error {
break
case func(data EventExitData) error:
cmd.handlers[EventExit] = h
break
default:
return ErrInvalidHandler
}