Skip to content

Commit

Permalink
HexViewer: fix formatting, remove unneded string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Nov 20, 2021
1 parent 3fe5762 commit c01f942
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/HexViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ export class HexViewer {
var intEnd = intIn && int.end === dataOffset;
var classes = [
`l${this.maxLevel - 1 - level}`,
`${((intBaseIdx + intIdx) % 2 === 0) ? "even" : "odd"}`,
(intBaseIdx + intIdx) % 2 === 0 ? "even" : "odd",
];
if(intIn) classes.push(`m${level}`);
if(intStart) classes.push("start");
if(intEnd) classes.push("end");
if(isSelected) classes.push("selected");
if(isCursor) classes.push("cursor");
if (intIn) classes.push(`m${level}`);
if (intStart) classes.push("start");
if (intEnd) classes.push("end");
if (isSelected) classes.push("selected");
if (isCursor) classes.push("cursor");
hexCell.levels[level].className = classes.join(" ");

if (intEnd)
Expand Down Expand Up @@ -367,4 +367,4 @@ export class HexViewer {
}
}
}
}
}

0 comments on commit c01f942

Please sign in to comment.