Skip to content

Commit 5860133

Browse files
author
Sander Toonen
committed
Fix codescanning findi
1 parent ff1cc34 commit 5860133

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,11 @@
163163
"optionalDependencies": {
164164
"@modelcontextprotocol/sdk": "^1.29.0",
165165
"zod": "^4.3.6"
166+
},
167+
"overrides": {
168+
"hono": "^4.12.14"
169+
},
170+
"resolutions": {
171+
"hono": "^4.12.14"
166172
}
167173
}

samples/language-service-sample/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ function loadExampleFromUrl() {
165165
(function() {
166166
const resizer = document.getElementById('verticalResizer');
167167
const contextPane = document.getElementById('contextPane');
168-
const resultsPane = document.getElementById('resultsPane');
169168
const bottomArea = document.getElementById('bottomArea');
170169
let isResizing = false;
171170

@@ -182,7 +181,6 @@ function loadExampleFromUrl() {
182181

183182
const containerRect = bottomArea.getBoundingClientRect();
184183
const containerWidth = containerRect.width;
185-
const resizerWidth = 6;
186184

187185
let newLeftWidth = e.clientX - containerRect.left;
188186
newLeftWidth = Math.max(containerWidth * 0.2, Math.min(containerWidth * 0.8, newLeftWidth));

src/functions/math/advanced.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ const GAMMA_P = [
1616
0.36899182659531622704e-5
1717
] as const;
1818

19-
function isInteger(value: number | undefined): boolean {
20-
if (value === undefined) {
21-
return false;
22-
}
19+
function isInteger(value: number): boolean {
2320
return isFinite(value) && (value === Math.round(value));
2421
}
2522

test/types/type-guards.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ describe('Type Guards', () => {
209209
}
210210
});
211211

212-
it('should narrow types correctly with isFunction', () => {
212+
it('should narrow types correctly with isFunction', async () => {
213213
const value: Value = Math.sin;
214214

215215
if (isFunction(value)) {
216216
// TypeScript should know value is ExpressionFunction here
217217
expect(typeof value).toBe('function');
218-
expect(typeof value(Math.PI / 2)).toBe('number');
218+
expect(typeof await value(Math.PI / 2)).toBe('number');
219219
}
220220
});
221221

0 commit comments

Comments
 (0)