Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 6831120

Browse files
committed
use os.EOL directly
1 parent 0c53637 commit 6831120

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var defaults = {
2929
parsers: {},
3030
workers: {},
3131

32-
lineEnding: detectLineEnding(),
32+
lineEnding: os.EOL,
3333
encoding: 'utf8'
3434
};
3535

@@ -134,15 +134,6 @@ function getSpecificationVersion() {
134134
return SPECIFICATION_VERSION;
135135
}
136136

137-
/**
138-
* Detect and return OS specific line ending.
139-
*
140-
* @returns {String}
141-
*/
142-
function detectLineEnding() {
143-
return os.EOL;
144-
}
145-
146137
/**
147138
* Parser
148139
*

0 commit comments

Comments
 (0)