Skip to content

Commit

Permalink
fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
fakoua committed Dec 28, 2023
1 parent 1e59226 commit d6c97a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function getNirArgs(
| WindowActions,
): Array<string> {

const act = typeof action === "string" ? action : (action as IWindowAction).action;
const act = typeof action === "string" ? action : action.action;


//Assert that at least one window find option is passed
Expand All @@ -39,10 +39,10 @@ export function getNirArgs(
args.push(...winArgs);

if (typeof action !== "string") {
args.push((action as IWindowAction).size.x.toString());
args.push((action as IWindowAction).size.y.toString());
args.push((action as IWindowAction).size.width.toString());
args.push((action as IWindowAction).size.height.toString());
args.push(action.size.x.toString());
args.push(action.size.y.toString());
args.push(action.size.width.toString());
args.push(action.size.height.toString());
}

return args;
Expand Down

0 comments on commit d6c97a7

Please sign in to comment.