Skip to content

Commit 8e94084

Browse files
committed
Consistently use "\n" to split lines, then trim extra characters if needed
1 parent 44a4bea commit 8e94084

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

lib/start-proxy-action.js

Lines changed: 28 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy/environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ export function checkJdkSettings(logger: Logger, jdkHome: string) {
101101
if (fs.existsSync(file)) {
102102
logger.debug(`Found '${file}'.`);
103103

104-
const lines = String(fs.readFileSync(file)).split(os.EOL);
104+
const lines = String(fs.readFileSync(file)).split("\n");
105105
for (const line of lines) {
106106
for (const property of properties) {
107107
if (line.startsWith(`${property}=`)) {
108-
logger.info(`Found '${line}' in '${file}'.`);
108+
logger.info(`Found '${line.trimEnd()}' in '${file}'.`);
109109
}
110110
}
111111
}

0 commit comments

Comments
 (0)