Skip to content

Commit

Permalink
Fix: wantedList must be specified in cutter format
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier committed Aug 15, 2024
1 parent f6ff185 commit d064079
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
Expand Up @@ -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,
Expand Down

0 comments on commit d064079

Please sign in to comment.