Fix Eslint
Co-authored-by: Nelson Chan <3271800+chakflying@users.noreply.github.com>
This commit is contained in:
parent
030faddd1c
commit
3579520575
|
@ -235,8 +235,7 @@ export default {
|
||||||
}
|
}
|
||||||
let badgeURL = this.$root.baseURL + "/api/badge/" + this.monitor.id + "/" + this.badge.type;
|
let badgeURL = this.$root.baseURL + "/api/badge/" + this.monitor.id + "/" + this.badge.type;
|
||||||
|
|
||||||
// eslint-disable-next-line camelcase
|
let parameterList = {};
|
||||||
let parameter_list = {};
|
|
||||||
|
|
||||||
for (let parameter of this.parameters[this.badge.type] || []) {
|
for (let parameter of this.parameters[this.badge.type] || []) {
|
||||||
if (parameter === "duration" && this.badge.duration) {
|
if (parameter === "duration" && this.badge.duration) {
|
||||||
|
@ -245,8 +244,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.badge[parameter]) {
|
if (this.badge[parameter]) {
|
||||||
// eslint-disable-next-line camelcase
|
parameterList[parameter] = this.badge[parameter];
|
||||||
parameter_list[parameter] = this.badge[parameter];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -256,13 +254,12 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.badge[parameter]) {
|
if (this.badge[parameter]) {
|
||||||
// eslint-disable-next-line camelcase
|
parameterList[parameter] = this.badge[parameter];
|
||||||
parameter_list[parameter] = this.badge[parameter];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(parameter_list).length > 0) {
|
if (Object.keys(parameterList).length > 0) {
|
||||||
return badgeURL + "?" + new URLSearchParams(parameter_list);
|
return badgeURL + "?" + new URLSearchParams(parameterList);
|
||||||
}
|
}
|
||||||
|
|
||||||
return badgeURL;
|
return badgeURL;
|
||||||
|
|
Loading…
Reference in New Issue