Skip to content

Commit 60acb02

Browse files
author
Faisal Mehmood
committed
fix: remove unnecessary semicolon in utils.js (eslint no-extra-semi)
1 parent 310524d commit 60acb02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/utils/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ let fileBasename = file => {
562562
* @param {string} str - The input string.
563563
* @returns {string} The string with the first character in uppercase.
564564
*/
565-
function toTitleCase (str) {
565+
function toTitleCase(str) {
566566
if (typeof str !== "string") return;
567567
let tempStr = "";
568568
if (str.length > 1) tempStr = str.substring(1);
569569
return str.toUpperCase()[0] + tempStr;
570-
};
570+
}
571571

572572
if (typeof module !== "undefined" && module.exports) {
573573
module.exports.toTitleCase = toTitleCase;

0 commit comments

Comments
 (0)