From 8c83dc9494aa5d24fbc713e12c11ae2541133ee1 Mon Sep 17 00:00:00 2001 From: veeck Date: Wed, 6 Jan 2021 13:17:39 +0100 Subject: [PATCH] Cleanup jsdoc --- clientonly/index.js | 4 +--- js/main.js | 1 - js/server.js | 7 +++++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/clientonly/index.js b/clientonly/index.js index 88454d93..3564eef8 100644 --- a/clientonly/index.js +++ b/clientonly/index.js @@ -14,7 +14,6 @@ * * @param {string} key key to look for at the command line * @param {string} defaultValue value if no key is given at the command line - * * @returns {string} the value of the parameter */ function getCommandLineParameter(key, defaultValue = undefined) { @@ -36,7 +35,6 @@ * Gets the config from the specified server url * * @param {string} url location where the server is running. - * * @returns {Promise} the config */ function getServerConfig(url) { @@ -66,7 +64,7 @@ /** * Print a message to the console in case of errors * - * @param {string} [message] error message to print + * @param {string} message error message to print * @param {number} code error code for the exit call */ function fail(message, code = 1) { diff --git a/js/main.js b/js/main.js index 6bdbbc3e..95d546cd 100644 --- a/js/main.js +++ b/js/main.js @@ -440,7 +440,6 @@ var MM = (function () { * Removes a module instance from the collection. * * @param {object} module The module instance to remove from the collection. - * * @returns {Module[]} Filtered collection of modules. */ var exceptModule = function (module) { diff --git a/js/server.js b/js/server.js index c68c0329..3c561514 100644 --- a/js/server.js +++ b/js/server.js @@ -14,6 +14,13 @@ const helmet = require("helmet"); const Log = require("./logger.js"); const Utils = require("./utils.js"); +/** + * Server + * + * @param {object} config The MM config + * @param {Function} callback Function called when done. + * @class + */ function Server(config, callback) { const port = process.env.MM_PORT || config.port;