Skip to content

Commit 80f43f7

Browse files
authored
Remove the assignment used only once (#705)
1 parent 65e069f commit 80f43f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/types/box.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ export default class BoxAnnotation extends Element {
1313
}
1414

1515
draw(ctx) {
16-
const rotation = this.options.rotation;
1716
ctx.save();
18-
translate(ctx, this, rotation);
17+
translate(ctx, this, this.options.rotation);
1918
drawBox(ctx, this, this.options);
2019
ctx.restore();
2120
}

0 commit comments

Comments
 (0)