Skip to content

Commit

Permalink
Remove unnecessary line break
Browse files Browse the repository at this point in the history
  • Loading branch information
malykhinvi committed Jun 6, 2020
1 parent c1eccf8 commit 1060f8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rules/no-restricted-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = {
context.report({
node,
message: `Unexpected path "{{importPath}}" imported in restricted zone.` +
(zone.message ? `\n${zone.message}` : ''),
(zone.message ? ` ${zone.message}` : ''),
data: { importPath },
})
})
Expand Down
2 changes: 1 addition & 1 deletion tests/src/rules/no-restricted-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ ruleTester.run('no-restricted-paths', rule, {
} ],
} ],
errors: [ {
message: 'Unexpected path "../two/a.js" imported in restricted zone.\n' +
message: 'Unexpected path "../two/a.js" imported in restricted zone. ' +
'Custom message',
line: 1,
column: 15,
Expand Down

0 comments on commit 1060f8a

Please sign in to comment.