mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
Format code
This commit is contained in:
parent
e22d92112e
commit
72615645bb
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -71776,7 +71776,7 @@ function parseNodeVersionFile(contents) {
|
|||
nodeVersion = (_a = JSON.parse(contents).engines) === null || _a === void 0 ? void 0 : _a.node;
|
||||
}
|
||||
catch (_c) {
|
||||
core.warning("Node version file is not JSON file");
|
||||
core.warning('Node version file is not JSON file');
|
||||
}
|
||||
if (!nodeVersion) {
|
||||
try {
|
||||
|
|
|
@ -502,7 +502,7 @@ export function parseNodeVersionFile(contents: string): string {
|
|||
try {
|
||||
nodeVersion = JSON.parse(contents).engines?.node;
|
||||
} catch {
|
||||
core.warning("Node version file is not JSON file")
|
||||
core.warning('Node version file is not JSON file');
|
||||
}
|
||||
|
||||
if (!nodeVersion) {
|
||||
|
|
Loading…
Add table
Reference in a new issue