Skip to content

Commit aa13935

Browse files
committed
Remove some any's
1 parent 34fb39b commit aa13935

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/memreadutils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class MemUtils {
3838
storeTo[dst++] = byte;
3939
}
4040
}
41-
} catch (e: any) {
41+
} catch (e: unknown) {
4242
const err = e ? e.toString() : 'Unknown error';
4343
errors.push(new Error(`readMemory failed @ ${memoryReference} for ${request.count} bytes: ${err}, session=${session.id}`));
4444
}

src/views/peripheral.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class PeripheralTreeForSession extends PeripheralBaseNode {
158158
peripherials = await parser.parseSVD(data, gapThreshold);
159159
}
160160

161-
} catch(e: any) {
161+
} catch(e: unknown) {
162162
this.errMessage = `${svdPath}: Error: ${e ? e.toString() : 'Unknown error'}`;
163163
vscode.debug.activeDebugConsole.appendLine(this.errMessage);
164164
}

0 commit comments

Comments
 (0)