Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit d3f5d40

Browse files
committed
Merge pull request #23 from Arcanemagus/fix-ruleset.xml
Properly check the return of findFile
2 parents b46fc79 + 357d9f7 commit d3f5d40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/main.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ module.exports =
5151
ruleset = @rulesets
5252
if @projectRules
5353
rulesetPath = helpers.findFile(filePath, 'ruleset.xml')
54-
if rulesetPath is not null and rulesetPath.length > 0
55-
ruleset = rulesetPath
54+
ruleset = rulesetPath if rulesetPath?
5655
parameters = []
5756
parameters.push(filePath)
5857
parameters.push('text')

0 commit comments

Comments
 (0)