Skip to content

Commit d07b6fd

Browse files
author
zho
committed
fixed lint error
1 parent af31af4 commit d07b6fd

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/cli.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import { SERVER_VERSION } from './constants.js';
77
import type { ConfigOverrides } from './core/config.js';
88

99
export type ParseCliResult =
10-
| { kind: 'help' }
11-
| { kind: 'version' }
12-
| { kind: 'config'; overrides: ConfigOverrides };
10+
{ kind: 'help' } | { kind: 'version' } | { kind: 'config'; overrides: ConfigOverrides };
1311

1412
function parsePositiveInt(raw: string | undefined): number | undefined {
1513
if (raw === undefined || raw === '') return undefined;

src/core/server/source-tool-utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ export const sourceParamSchema = z
1717
);
1818

1919
export type ResolveSourceFailureCode =
20-
| 'UNKNOWN_SOURCE'
21-
| 'AMBIGUOUS_NAMESPACE'
22-
| 'NAMESPACE_NOT_FOUND'
23-
| 'PARTIAL_SOURCE_AGGREGATION';
20+
'UNKNOWN_SOURCE' | 'AMBIGUOUS_NAMESPACE' | 'NAMESPACE_NOT_FOUND' | 'PARTIAL_SOURCE_AGGREGATION';
2421

2522
function validationFieldForSourceCode(code: ResolveSourceFailureCode): 'source' | 'namespace' {
2623
switch (code) {

src/core/server/tools/keyword-search-tool.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ import { jsonErrorResponse, validatedJsonResponse } from '../tool-response.js';
3030
export type { KeywordSearchResponse };
3131

3232
type KeywordSearchExecResult =
33-
| { ok: true; body: KeywordSearchSuccessResponse }
34-
| { ok: false; error: ToolError };
33+
{ ok: true; body: KeywordSearchSuccessResponse } | { ok: false; error: ToolError };
3534

3635
async function executeKeywordSearch(
3736
params: {

0 commit comments

Comments
 (0)