diff options
| author | Loyalsoldier <[email protected]> | 2024-08-15 12:51:53 +0800 |
|---|---|---|
| committer | Loyalsoldier <[email protected]> | 2024-08-15 12:52:36 +0800 |
| commit | d0640792bf956f5517e3684025564fae8016a49e (patch) | |
| tree | 6cbbc5bfbf43759a930f9a88f26bf851474f603c /plugin | |
| parent | f6ff18584da4706ff62936ce7bc0d9fa1f154c51 (diff) | |
Fix: wantedList must be specified in cutter format
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/special/cutter.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/special/cutter.go b/plugin/special/cutter.go index fd4dcb59..2d52e161 100644 --- a/plugin/special/cutter.go +++ b/plugin/special/cutter.go @@ -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, |
