diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-10-24 22:17:03 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-10-24 22:17:03 +0300 |
commit | dfb082434611648658ace012d45b7d6914bc70bd (patch) | |
tree | 42c08de9e6a0420544253383473438fb12b367cc /app/assets/javascripts/deploy_keys/service | |
parent | f8f1466ad07b3dcea7c0abc54fa25865b420b4f0 (diff) |
Prettify all the things (part 7)
Diffstat (limited to 'app/assets/javascripts/deploy_keys/service')
-rw-r--r-- | app/assets/javascripts/deploy_keys/service/index.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/assets/javascripts/deploy_keys/service/index.js b/app/assets/javascripts/deploy_keys/service/index.js index 9dc3b21f6f6..268a37008c5 100644 --- a/app/assets/javascripts/deploy_keys/service/index.js +++ b/app/assets/javascripts/deploy_keys/service/index.js @@ -8,17 +8,14 @@ export default class DeployKeysService { } getKeys() { - return this.axios.get() - .then(response => response.data); + return this.axios.get().then(response => response.data); } enableKey(id) { - return this.axios.put(`${id}/enable`) - .then(response => response.data); + return this.axios.put(`${id}/enable`).then(response => response.data); } disableKey(id) { - return this.axios.put(`${id}/disable`) - .then(response => response.data); + return this.axios.put(`${id}/disable`).then(response => response.data); } } |