Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Consistent naming of functions

Lyubomir Marinov5305f2333265
diff --git a/react/features/base/util/randomUtil.js b/react/features/base/util/randomUtil.js
index c1d6bde4a9..f99968404a 100644
--- a/react/features/base/util/randomUtil.js
+++ b/react/features/base/util/randomUtil.js
@@ -69,6 +69,7 @@ export function randomInt(min, max) {
* @param {number} length - The length of the string to return.
* @param {string} characters - The characters from which the returned string is
* to be constructed.
+ * @private
* @returns {string} A string of random characters with the specified length.
*/
function _randomString(length, characters) {
diff --git a/react/features/base/util/roomnameGenerator.js b/react/features/base/util/roomnameGenerator.js
index 63adfaad76..2f15534e4a 100644
--- a/react/features/base/util/roomnameGenerator.js
+++ b/react/features/base/util/roomnameGenerator.js
@@ -210,7 +210,7 @@ export function generateRoomWithoutSeparator() {
// that names from patterns with more options).
let name = randomElement(PATTERNS);
- while (hasTemplate(name)) {
+ while (_hasTemplate(name)) {
for (const template in CATEGORIES) { // eslint-disable-line guard-for-in
const word = randomElement(CATEGORIES[template]);
@@ -226,10 +226,11 @@ export function generateRoomWithoutSeparator() {
* templates/categories.
*
* @param {string} s - String containing categories.
+ * @private
* @returns {boolean} True if the specified string contains at least one of the
* templates/categories; otherwise, false.
*/
-function hasTemplate(s) {
+function _hasTemplate(s) {
for (const template in CATEGORIES) {
if (s.indexOf(template) >= 0) {
return true;