Skip to content

Commit b12c014

Browse files
author
zho
committed
#15-fix linter error
1 parent 59aaef3 commit b12c014

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ async function main(): Promise<void> {
102102
const options = parseArgs();
103103

104104
// Set log level (env + logger singleton so tools get correct level)
105-
const rawLevel =
106-
options.logLevel ||
107-
process.env['PINECONE_READ_ONLY_MCP_LOG_LEVEL'] ||
108-
'INFO';
105+
const rawLevel = options.logLevel || process.env['PINECONE_READ_ONLY_MCP_LOG_LEVEL'] || 'INFO';
109106
const logLevel = (
110107
['DEBUG', 'INFO', 'WARN', 'ERROR'].includes(rawLevel) ? rawLevel : 'INFO'
111108
) as LogLevel;

src/pinecone-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class PineconeClient {
168168
if (!(key in metadataFields)) {
169169
metadataFields[key] = inferredType;
170170
} else if (
171-
metadataFields[key] === 'object' || metadataFields[key] === 'array' &&
171+
(metadataFields[key] === 'object' || metadataFields[key] === 'array') &&
172172
inferredType === 'string[]'
173173
) {
174174
// Prefer array type over generic object when we see it in another sample

0 commit comments

Comments
 (0)