Skip to content

Commit

Permalink
Simplyfy
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscognite committed Jun 25, 2024
1 parent 8634dee commit b838508
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export abstract class RenderTargetCommand extends BaseCommand {

public get undoManager(): UndoManager | undefined {
// This method is overridden on BaseTool only!
const activeTool = this.activeTool;
const { activeTool } = this;
if (activeTool === undefined) {
return undefined;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class SetClipTypeCommand extends RenderTargetCommand {
// ==================================================

private get tool(): ClipTool | undefined {
const activeTool = this.activeTool;
const { activeTool } = this;
if (!(activeTool instanceof ClipTool)) {
return undefined;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class SetMeasurementTypeCommand extends RenderTargetCommand {
// ==================================================

private get tool(): MeasurementTool | undefined {
const activeTool = this.activeTool;
const { activeTool } = this;
if (!(activeTool instanceof MeasurementTool)) {
return undefined;
}
Expand Down

0 comments on commit b838508

Please sign in to comment.