Skip to content

Commit

Permalink
Rename local variable to clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
phensley committed Jan 15, 2020
1 parent e0408ab commit 5a91295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/formatters.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ export class ModFormatter extends Formatter {
apply(args: string[], vars: Variable[], ctx: Context): void {
const first = vars[0];
const n = first.node.asNumber();
const modulus = parseInt(args[0], 10) || 2;
first.set(n % (modulus && isFinite(modulus) ? modulus : 2));
const divisor = parseInt(args[0], 10) || 2;
first.set(n % (divisor && isFinite(divisor) ? divisor : 2));
}
}

Expand Down

0 comments on commit 5a91295

Please sign in to comment.