From 62ff8321f18522bcf517c6874553997b646612e1 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Tue, 2 Apr 2019 18:27:28 +0200 Subject: [PATCH] fix some lint errors --- src/components/log.vue | 15 +++++---------- src/components/loginform.vue | 2 -- src/components/projectvars.vue | 1 - src/components/registerform.vue | 2 -- src/components/task.vue | 1 - src/components/vars.vue | 2 -- src/main.js | 2 -- src/views/Logout.vue | 2 -- src/views/Org.vue | 4 +--- src/views/User.vue | 1 - 10 files changed, 6 insertions(+), 26 deletions(-) diff --git a/src/components/log.vue b/src/components/log.vue index d394211..96dfc2d 100644 --- a/src/components/log.vue +++ b/src/components/log.vue @@ -76,16 +76,11 @@ export default { } else { path += "&step=" + this.step; } - let res = await fetch(apiurl(path)) - .then(r => { - if (r.status == 200) { - return r.text(); - } - return ""; - }) - .then(data => { - this.items.push(this.formatter.ansi_to_html(data)); - }); + let res = await fetch(apiurl(path)); + if (res.status == 200) { + let data = await res.text(); + this.items.push(this.formatter.ansi_to_html(data)); + } } }, watch: { diff --git a/src/components/loginform.vue b/src/components/loginform.vue index ac33d15..ef66c22 100644 --- a/src/components/loginform.vue +++ b/src/components/loginform.vue @@ -32,8 +32,6 @@