Merge pull request #1384 from KeWang0622/fix/lint-md028-eqeqeq

fix: resolve markdownlint MD028 + ESLint eqeqeq lint failures
This commit is contained in:
Affaan Mustafa
2026-04-12 23:03:19 -07:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ function sanitizeParamValue(value, depth = 0) {
return '[Truncated]';
}
if (value == null) {
if (value === null || value === undefined) {
return value;
}
@@ -530,7 +530,7 @@ function summarizeInput(toolName, toolInput, filePaths) {
if (toolInput && typeof toolInput === 'object') {
const shallow = {};
for (const [key, value] of Object.entries(toolInput)) {
if (value == null) {
if (value === null || value === undefined) {
continue;
}
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
@@ -545,7 +545,7 @@ function summarizeInput(toolName, toolInput, filePaths) {
}
function summarizeOutput(toolOutput) {
if (toolOutput == null) {
if (toolOutput === null || toolOutput === undefined) {
return '';
}