Skip to content

Commit a89527e

Browse files
committed
Fix code smells
1 parent 776ce73 commit a89527e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type MessageIds =
3535
* Type for list of message identifiers.
3636
*/
3737
export type MessageIdKeys = {
38-
[_ in RuleOptionGroup]: { [_ in RuleOptionValue]: MessageIds };
38+
[_ in RuleOptionGroup]: { [__ in RuleOptionValue]: MessageIds };
3939
};
4040

4141
/**

src/lib/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ function getLocOffsetFix<T extends AST>(node: AstWithParent<T>): number {
142142
// Get all the whitespaces (including line-breaks) before the expression.
143143
const result = /^[\r\n\s\t]+/gm.exec(astWithSource.source);
144144
if (result !== null && result.length > 0) {
145-
const offset = result[0].length;
146-
return offset;
145+
return result[0].length;
147146
}
148147

149148
return 0;

0 commit comments

Comments
 (0)