Remove unnecessary typecast

Remove typecast where typescript is able to correctly deduce the type.
This commit is contained in:
Frederic Junod
2019-10-02 10:44:05 +02:00
parent fa0258a323
commit daaaff5ac7
5 changed files with 6 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ export function toSize(size, opt_size) {
if (opt_size === undefined) {
opt_size = [size, size];
} else {
opt_size[0] = opt_size[1] = /** @type {number} */ (size);
opt_size[0] = opt_size[1] = size;
}
return opt_size;
}