From af8ea6b45f7fc8137a37b3ac3e0d328a799f94be Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 21 Jan 2021 21:06:52 +0000 Subject: [PATCH] lint: src/node/utils/NodeVersion.js --- src/node/utils/NodeVersion.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/node/utils/NodeVersion.js b/src/node/utils/NodeVersion.js index f237e6637..f4f8f2577 100644 --- a/src/node/utils/NodeVersion.js +++ b/src/node/utils/NodeVersion.js @@ -1,3 +1,4 @@ +'use strict'; /** * Checks related to Node runtime version */ @@ -25,7 +26,7 @@ const semver = require('semver'); * * @param {String} minNodeVersion Minimum required Node version */ -exports.enforceMinNodeVersion = function (minNodeVersion) { +exports.enforceMinNodeVersion = (minNodeVersion) => { const currentNodeVersion = process.version; // we cannot use template literals, since we still do not know if we are @@ -41,10 +42,12 @@ exports.enforceMinNodeVersion = function (minNodeVersion) { /** * Prints a warning if running on a supported but deprecated Node version * - * @param {String} lowestNonDeprecatedNodeVersion all Node version less than this one are deprecated - * @param {Function} epRemovalVersion Etherpad version that will remove support for deprecated Node releases + * @param {String} lowestNonDeprecatedNodeVersion all Node version less than this one are + * deprecated + * @param {Function} epRemovalVersion Etherpad version that will remove support for deprecated + * Node releases */ -exports.checkDeprecationStatus = function (lowestNonDeprecatedNodeVersion, epRemovalVersion) { +exports.checkDeprecationStatus = (lowestNonDeprecatedNodeVersion, epRemovalVersion) => { const currentNodeVersion = process.version; if (semver.lt(currentNodeVersion, lowestNonDeprecatedNodeVersion)) {