Skip to content

Commit

Permalink
fix(rss): fix negated option.remove (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Shigma <1700011071@pku.edu.cn>
  • Loading branch information
ilharp and shigma authored Oct 10, 2020
1 parent 6d46eb0 commit 330b0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-rss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function apply(ctx: Context, config: Config = {}) {
url = url.toLowerCase()

const index = $group.rss.indexOf(url)
if (!options.remove) {
if (options.remove) {
if (index < 0) return '未订阅此链接。'
$group.rss.splice(index, 1)
unsubscribe(url, $group.id)
Expand Down

0 comments on commit 330b0ae

Please sign in to comment.