Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/special/cutter.go
Original file line number Diff line number Diff line change
@@ -46,6 +46,10 @@ func newCutter(action lib.Action, data json.RawMessage) (lib.InputConverter, err
}
}

if len(wantList) == 0 {
return nil, fmt.Errorf("type %s wantedList must be specified", typeCutter)
}

return &cutter{
Type: typeCutter,
Action: action,

0 comments on commit d064079

Please sign in to comment.