Skip to content

Commit

Permalink
add change to improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro committed Sep 8, 2024
1 parent 801153a commit c8a4334
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/serverCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,9 @@ export function writeScratchpadResult(

function isValidExportedConnections(data: any): data is ExportedConnections {
return (
data?.connections?.Insights instanceof Array &&
data?.connections?.KDB instanceof Array
data &&
data.connections &&
Array.isArray(data.connections.Insights) &&
Array.isArray(data.connections.KDB)
);
}

0 comments on commit c8a4334

Please sign in to comment.