Skip to content

Commit

Permalink
Deal with false positive of static code analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmy committed Oct 19, 2021
1 parent a9398e1 commit e99ed03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debugger/debugging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function checkAndDebugSpec(
return;
}
// Randomly select a port on which we request the debugger to listen
const initPort = Math.floor(Math.random() * (DEBUGGER_MAX_PORT - DEBUGGER_MIN_PORT)) + DEBUGGER_MIN_PORT;
const initPort = Math.floor(Math.random() * (DEBUGGER_MAX_PORT - DEBUGGER_MIN_PORT)) + DEBUGGER_MIN_PORT; //NOSONAR
// This will be called as soon as TLC starts listening on a port or fails to start
const portOpenCallback = (port?: number) => {
if (!port) {
Expand Down Expand Up @@ -95,7 +95,7 @@ export async function smokeTestSpec(
return;
}
// Randomly select a port on which we request the debugger to listen
const initPort = Math.floor(Math.random() * (DEBUGGER_MAX_PORT - DEBUGGER_MIN_PORT)) + DEBUGGER_MIN_PORT;
const initPort = Math.floor(Math.random() * (DEBUGGER_MAX_PORT - DEBUGGER_MIN_PORT)) + DEBUGGER_MIN_PORT; //NOSONAR
// This will be called as soon as TLC starts listening on a port or fails to start
const portOpenCallback = (port?: number) => {
if (!port) {
Expand Down

0 comments on commit e99ed03

Please sign in to comment.