Skip to content

Commit b8d153d

Browse files
Merge pull request steam-bell-92#1331 from jyotish6699/refactor/remove-duplicate-topascalcase
refactor: remove duplicate toPascalCase implementation in project loader
2 parents ef68a41 + 7fe9248 commit b8d153d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

web-app/js/projects.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,13 +1584,6 @@ function toPascalCase(str) {
15841584
.join("");
15851585
}
15861586

1587-
function toPascalCase(str) {
1588-
return str
1589-
.split("-")
1590-
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
1591-
.join("");
1592-
}
1593-
15941587
function getProjectHTML(projectName) {
15951588
const fnName = "get" + toPascalCase(projectName) + "HTML";
15961589

0 commit comments

Comments
 (0)