From 22f70926728dcb815c69b591b98e12e797e9ac49 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 4 Jun 2018 15:04:52 +0200 Subject: [PATCH] linebreak-style: remove useless variable --- packages/remark-lint-linebreak-style/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/remark-lint-linebreak-style/index.js b/packages/remark-lint-linebreak-style/index.js index c6e7b9ae..045970bf 100644 --- a/packages/remark-lint-linebreak-style/index.js +++ b/packages/remark-lint-linebreak-style/index.js @@ -52,7 +52,6 @@ var location = require('vfile-location') module.exports = rule('remark-lint:linebreak-style', linebreakStyle) -var sequences = {unix: '\n', windows: '\r\n'} var escaped = {unix: '\\n', windows: '\\r\\n'} var types = {true: 'windows', false: 'unix'} @@ -69,7 +68,7 @@ function linebreakStyle(tree, file, pref) { type = types[content.charAt(index - 1) === '\r'] if (pref) { - if (sequences[pref] !== sequences[type]) { + if (pref !== type) { reason = 'Expected linebreaks to be ' + pref +