Remove unnecessary type cast

`npx tsc` output is the same before and after the changes.
This commit is contained in:
Frederic Junod
2019-02-05 11:31:59 +01:00
parent 2c3ffdfdf8
commit 427c73ddf9
3 changed files with 5 additions and 8 deletions
+1 -2
View File
@@ -43,8 +43,7 @@ class CanvasImageLayerRenderer extends CanvasLayerRenderer {
const viewState = frameState.viewState;
const viewResolution = viewState.resolution;
const imageLayer = /** @type {import("../../layer/Image.js").default} */ (this.getLayer());
const imageSource = imageLayer.getSource();
const imageSource = this.getLayer().getSource();
const hints = frameState.viewHints;