DEV: Extensively use startsWith() (#17540)

This commit is contained in:
Jarek Radosz
2022-07-17 20:16:39 +02:00
committed by GitHub
parent 6a4a7b1d88
commit 5f7163b5bb
16 changed files with 34 additions and 35 deletions

View File

@ -1,5 +1,5 @@
function resolve(path) {
if (path.indexOf("settings") === 0 || path.indexOf("transformed") === 0) {
if (path.startsWith("settings") || path.startsWith("transformed")) {
return `this.${path}`;
}
return path;