Skip to content

Commit

Permalink
🐛 fix(config.ts): remove duplicate config validator for prefix key
Browse files Browse the repository at this point in the history
The duplicate validator for the prefix key has been removed, as the same key being defined twice.
This fix ensures that the correct validator is used for the prefix key.

🐛 修正(config.ts): prefixキーの重複した構成検証子を削除しました

同じキーが2回定義されていたため prefixキーの重複した構成検証子が削除しました、
この修正により、prefixキーに対して正しい検証子が使用されるようになりました。
  • Loading branch information
takuya-o committed May 7, 2023
1 parent 123f64c commit 9660141
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,6 @@ export const configValidators = {
return value;
},

[CONFIG_KEYS.prefix](value: any) {
validateConfig(
CONFIG_KEYS.prefix,
true,
'Cannot be empty'
);
return value;
},

[CONFIG_KEYS.prefix](value: any) {
validateConfig(
CONFIG_KEYS.prefix,
Expand Down

0 comments on commit 9660141

Please sign in to comment.