Skip to content

Commit 086fe0a

Browse files
committed
fix: codestyle
1 parent df8b267 commit 086fe0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/parameter-processor.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ export class ParameterProcessor {
9292
case 'Number':
9393
return paramValue === undefined ? paramValue : parseFloat(paramValue as string);
9494
case 'Boolean':
95-
if (typeof paramValue === 'string') {
96-
return paramValue.toLowerCase() === 'true';
97-
}
98-
return paramValue === undefined ? paramValue : paramValue === true;
95+
if (paramValue === undefined) return paramValue;
96+
if (typeof paramValue === 'boolean') return paramValue;
97+
98+
return paramValue.toLowerCase() === 'true';
9999
default:
100100
let converter = ServerContainer.get().paramConverters.get(paramType);
101101
if (!converter) {

0 commit comments

Comments
 (0)