mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
chore: upgrade oxlint to v0.13.2 (#8891)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
@@ -94,10 +94,8 @@ export function unregisterCopilotProvider(type: CopilotProviderType) {
|
||||
|
||||
/// Asserts that the config is valid for any registered providers
|
||||
export function assertProvidersConfigs(config: AFFiNEConfig) {
|
||||
return (
|
||||
Array.from(ASSERT_CONFIG.values()).findIndex(assertConfig =>
|
||||
assertConfig(config)
|
||||
) !== -1
|
||||
return Array.from(ASSERT_CONFIG.values()).some(assertConfig =>
|
||||
assertConfig(config)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user