es2015: use const in Control.Header.ts

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I834cfd100b6da8541f8108fbb9041a37fea4d9af
This commit is contained in:
Szymon Kłos 2024-02-09 09:42:32 +01:00 committed by Szymon Kłos
parent 7216290881
commit cc29bdefe0

View file

@ -342,10 +342,9 @@ export class Header extends CanvasSectionObject {
const offset = 'A'.charCodeAt(0);
let dividend = columnNumber;
let columnName = '';
let modulo: number;
while (dividend > 0) {
modulo = (dividend - 1) % 26;
const modulo: number = (dividend - 1) % 26;
columnName = String.fromCharCode(offset + modulo) + columnName;
dividend = Math.floor((dividend - modulo) / 26);
}