Full code cleanup

This commit is contained in:
Pieter Vander Vennet 2021-11-07 16:34:51 +01:00
parent 8e6ee8c87f
commit bd21212eba
246 changed files with 19418 additions and 11729 deletions

View file

@ -28,12 +28,12 @@ export default class OpeningHoursInput extends InputElement<string> {
this._value = value;
let valueWithoutPrefix = value
if (prefix !== "" && postfix !== "") {
valueWithoutPrefix = value.map(str => {
if (str === undefined) {
return undefined;
}
if(str === ""){
if (str === "") {
return ""
}
if (str.startsWith(prefix) && str.endsWith(postfix)) {
@ -44,7 +44,7 @@ export default class OpeningHoursInput extends InputElement<string> {
if (noPrefix === undefined) {
return undefined;
}
if(noPrefix === ""){
if (noPrefix === "") {
return ""
}
if (noPrefix.startsWith(prefix) && noPrefix.endsWith(postfix)) {