Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
validateAlignedFunctionParameters: use file#isOnTheSameLine if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Apr 12, 2016
1 parent ff293c9 commit ebeca63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/validate-aligned-function-parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports.prototype = {
// ignore this rule if the parameters are not multi-line
var firstParameter = file.getFirstNodeToken(node.params[0]);
var lastParameter = node.params[node.params.length - 1];
if (firstParameter.getLoc().start.line === lastParameter.getLoc().end.line) {
if (file.isOnTheSameLine(firstParameter, lastParameter)) {
return;
}

Expand Down

0 comments on commit ebeca63

Please sign in to comment.