misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-24 21:00:12 +01:00
commit b6979f2baf
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -92,7 +92,6 @@ func (l *TriggerList) Dispatch(e session.Event) (ident string, cmd string, err e
for id, t := range l.triggers {
if e.Tag == t.For {
// this is ugly but it's also the only way to allow
// the user to do this easily - since each event Data
// field is an interface and type casting is not possible