Skip to content

Commit

Permalink
fix(commands): remove unnecessary write backs
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 26, 2024
1 parent 737cf61 commit aaf5f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions plugins/commands/src/index.ts
Expand Up @@ -25,8 +25,8 @@ const Override: Schema<Override> = Schema.object({
aliases: Schema.union([
Schema.dict(Schema.union([
Schema.object({
args: Schema.array(null),
options: Schema.dict(null),
args: Schema.array(null).default(null),
options: Schema.dict(null).default(null),
filter: Schema.any(),
}),
Schema.transform(false, () => ({ filter: false })),
Expand All @@ -35,7 +35,7 @@ const Override: Schema<Override> = Schema.object({
return Object.fromEntries(aliases.map((name) => [name, {}]))
}),
]),
options: Schema.dict(null),
options: Schema.dict(null).default(null),
config: Schema.any(),
})

Expand Down
1 change: 0 additions & 1 deletion plugins/commands/tests/index.spec.ts
Expand Up @@ -75,7 +75,6 @@ describe('@koishijs/plugin-commands', () => {
aliases: {
baz: {},
},
options: {},
},
})

Expand Down

0 comments on commit aaf5f24

Please sign in to comment.