Minor cleanups

This commit is contained in:
rejas 2020-08-01 17:06:56 +02:00
parent 02779ef725
commit 05659820d0
3 changed files with 2 additions and 5 deletions

View File

@ -35,7 +35,8 @@
/** /**
* Gets the config from the specified server url * Gets the config from the specified server url
* *
* @param {string} url location where the server is running * @param {string} url location where the server is running.
*
* @returns {Promise} the config * @returns {Promise} the config
*/ */
function getServerConfig(url) { function getServerConfig(url) {

View File

@ -345,7 +345,6 @@ var Module = Class.extend({
* @param {string} key The key of the string to translate * @param {string} key The key of the string to translate
* @param {string|object} [defaultValueOrVariables] The default value or variables for translating. * @param {string|object} [defaultValueOrVariables] The default value or variables for translating.
* @param {string} [defaultValue] The default value with variables. * @param {string} [defaultValue] The default value with variables.
*
* @returns {string} the translated key * @returns {string} the translated key
*/ */
translate: function (key, defaultValueOrVariables, defaultValue) { translate: function (key, defaultValueOrVariables, defaultValue) {
@ -477,7 +476,6 @@ Module.register = function (name, moduleDefinition) {
* *
* @param {string} a Version number a. * @param {string} a Version number a.
* @param {string} b Version number b. * @param {string} b Version number b.
*
* @returns {number} A positive number if a is larger than b, a negative * @returns {number} A positive number if a is larger than b, a negative
* number if a is smaller and 0 if they are the same * number if a is smaller and 0 if they are the same
*/ */

View File

@ -37,7 +37,6 @@ var Translator = (function () {
* @param {Module} module The module to load the translation for. * @param {Module} module The module to load the translation for.
* @param {string} key The key of the text to translate. * @param {string} key The key of the text to translate.
* @param {object} variables The variables to use within the translation template (optional) * @param {object} variables The variables to use within the translation template (optional)
*
* @returns {string} the translated key * @returns {string} the translated key
*/ */
translate: function (module, key, variables) { translate: function (module, key, variables) {
@ -51,7 +50,6 @@ var Translator = (function () {
* *
* @param {string} template Text with placeholder * @param {string} template Text with placeholder
* @param {object} variables Variables for the placeholder * @param {object} variables Variables for the placeholder
*
* @returns {string} the template filled with the variables * @returns {string} the template filled with the variables
*/ */
function createStringFromTemplate(template, variables) { function createStringFromTemplate(template, variables) {