Mercurial > gemma
changeset 5661:216366f1067b fix_wait-retry_check
linting
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 02 Nov 2023 16:10:03 +0100 |
parents | dd20ee7cc9d8 |
children | 949f399d0e71 |
files | client/src/components/importconfiguration/ScheduledImports.vue |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/importconfiguration/ScheduledImports.vue Fri Oct 27 17:02:56 2023 +0200 +++ b/client/src/components/importconfiguration/ScheduledImports.vue Thu Nov 02 16:10:03 2023 +0100 @@ -702,12 +702,18 @@ }, methods: { checkMinimum() { - let m = /^((\d+)h)?((\d+)m)?((\d+)s)?$/.exec(this.waitRetry) + let m = /^((\d+)h)?((\d+)m)?((\d+)s)?$/.exec(this.waitRetry); if (m) { let s = 0; - if (m[2]) { s += m[2]*3600 }; - if (m[4]) { s += m[4]*60 }; - if (m[6]) { s += m[6] }; + if (m[2]) { + s += m[2] * 3600; + } + if (m[4]) { + s += m[4] * 60; + } + if (m[6]) { + s += m[6]; + } if (s < 5) this.waitRetry = "5s"; } },