mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
Merge pull request #1384 from KeWang0622/fix/lint-md028-eqeqeq
fix: resolve markdownlint MD028 + ESLint eqeqeq lint failures
This commit is contained in:
commit
2b09308224
2 changed files with 4 additions and 4 deletions
|
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue