Skip to content

Commit 9e00ce2

Browse files
committed
Minor fix
1 parent 68d1235 commit 9e00ce2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/wordpress_com/common/methods.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
return typeof input === "number";
99
},
1010

11-
isEmptySting(input) {
11+
isEmptyString(input) {
1212
if (this.isString(input)) {
1313
if (input.trim() === "") return true;
1414
};
@@ -86,15 +86,15 @@ export default {
8686
================================================================================================ */
8787
checkIfUrlValid(input) {
8888

89-
// Warnin accumulator
89+
// Warning accumulator
9090
let warnings = [];
9191

9292
if (!this.isString(input)) {
9393
warnings.push("URL is not a string");
9494

9595
};
9696

97-
if (this.isEmptySting(input)) {
97+
if (this.isEmptyString(input)) {
9898
warnings.push("URL is empty string");
9999
return warnings;
100100
};

0 commit comments

Comments
 (0)