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:
parent
7216290881
commit
cc29bdefe0
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue