mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 17:26:27 +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;
|
nodeVersion = (_a = JSON.parse(contents).engines) === null || _a === void 0 ? void 0 : _a.node;
|
||||||
}
|
}
|
||||||
catch (_c) {
|
catch (_c) {
|
||||||
core.warning("Node version file is not JSON file");
|
core.warning('Node version file is not JSON file');
|
||||||
}
|
}
|
||||||
if (!nodeVersion) {
|
if (!nodeVersion) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -502,7 +502,7 @@ export function parseNodeVersionFile(contents: string): string {
|
||||||
try {
|
try {
|
||||||
nodeVersion = JSON.parse(contents).engines?.node;
|
nodeVersion = JSON.parse(contents).engines?.node;
|
||||||
} catch {
|
} catch {
|
||||||
core.warning("Node version file is not JSON file")
|
core.warning('Node version file is not JSON file');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nodeVersion) {
|
if (!nodeVersion) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue