mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-13 08:15:37 +00:00
Update getJSON.js
This commit is contained in:
1 parent
a93eb38374
commit
10210e170d
1 file changed
+2
-3
+2
-3
@@ -16,16 +16,15 @@ function getJSON(file, filename) {
|
||||
const data = JSON.parse(rawdata); // Parse it
|
||||
return data; // Return true or false, depending if tests pass or fail.
|
||||
}
|
||||
|
||||
return 3; // It doesn't exist
|
||||
} catch(err) {
|
||||
core.setOutput('infoMessage', "Could not validate info.");
|
||||
core.setOutput('recordMessage', "Could not validate records.");
|
||||
core.setOutput('jsonData', "Could not read the JSON file, did you have an error in your syntax?")
|
||||
core.setOutput('shouldComment', 'true')
|
||||
console.error(err);
|
||||
console.log(err);
|
||||
return 3;
|
||||
}
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user