Merge branch 'master' into add-JSDoc-comments

This commit is contained in:
Matthew Nickson
2022-04-21 13:01:22 +01:00
committed by GitHub
185 changed files with 15986 additions and 5448 deletions

View File

@@ -30,7 +30,7 @@ const DEFAULT_KEEP_PERIOD = 180;
try {
await R.exec(
"DELETE FROM heartbeat WHERE time < DATETIME('now', '-' || ? || ' days') ",
[parsedPeriod]
[ parsedPeriod ]
);
} catch (e) {
log(`Failed to clear old data: ${e.message}`);

View File

@@ -17,7 +17,7 @@ const log = function (any) {
* @param {number} error The status code to exit
*/
const exit = function (error) {
if (error && error != 0) {
if (error && error !== 0) {
process.exit(error);
} else {
if (parentPort) {