Skip to content

Commit

Permalink
Merge pull request #325 from sir-gon/feature/sonarcloud-bugfix-typesc…
Browse files Browse the repository at this point in the history
…ript_S6582

[BUGFIX] sonarcloud typescript:S6582 fixed.
  • Loading branch information
sir-gon authored May 9, 2024
2 parents b1dc6c1 + c2598b0 commit ee33203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projecteuler/lib/BNodeBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class BNodeBuilder<T = number> extends BNode<T> {
if (dataTree[i]?.[j]) {
const resultNode = new BNode<number>(dataTree[i][j] + (rootValue ?? 0));

if (dataTree[i + 1] && dataTree[i + 1][j] && dataTree[i + 1][j + 1]) {
if (dataTree?.[i + 1]?.[j] && dataTree?.[i + 1]?.[j + 1]) {
// Next left coordinates: [i + 1][j]
resultNode.setLeft(
BNodeBuilder.buildBNodeTreeWeight(
Expand Down

0 comments on commit ee33203

Please sign in to comment.