Skip to content

Commit 4daabd7

Browse files
ledsundomarmstrong
andauthored
Apply suggestions from code review
Co-authored-by: Dom Armstrong <dom@dom-armstrong.co.uk>
1 parent 1cbaa2f commit 4daabd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/util/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function getSourceCode(context) {
55
}
66

77
function getFilename(context) {
8-
return context.filename || context.getFilename();
8+
return context.getFilename ? context.getFilename : filename;
99
}
1010

1111
function getAncestors(context, node) {

0 commit comments

Comments
 (0)