aboutsummaryrefslogtreecommitdiffstats
path: root/development/sentry-publish.js
diff options
context:
space:
mode:
authorАнна <anna@MacBook-Air-Anna.local>2018-07-05 11:15:28 +0800
committerАнна <anna@MacBook-Air-Anna.local>2018-07-05 11:15:28 +0800
commit90934bca46cf990554cbf9be9e302ab5e2fc8041 (patch)
treeee68fa3d98e8c0e072980fd07397b3a9bd40d640 /development/sentry-publish.js
parent1f6bf0a80d43252d7b84e8e0247a524b77569810 (diff)
parentfd218142acb6dab0b2f921b9729f17ff90cffc2d (diff)
downloadtangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar.gz
tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.tar.zst
tangerine-wallet-browser-90934bca46cf990554cbf9be9e302ab5e2fc8041.zip
Merge branch 'develop' into to-autocomplete
Diffstat (limited to 'development/sentry-publish.js')
-rw-r--r--development/sentry-publish.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/development/sentry-publish.js b/development/sentry-publish.js
index ab3acabbd..7a6d55115 100644
--- a/development/sentry-publish.js
+++ b/development/sentry-publish.js
@@ -5,7 +5,7 @@ const VERSION = require('../dist/chrome/manifest.json').version
start().catch(console.error)
-async function start(){
+async function start () {
const authWorked = await checkIfAuthWorks()
if (!authWorked) {
console.log(`Sentry auth failed...`)
@@ -31,21 +31,21 @@ async function start(){
console.log('all done!')
}
-async function checkIfAuthWorks() {
+async function checkIfAuthWorks () {
const itWorked = await doesNotFail(async () => {
await exec(`sentry-cli releases --org 'metamask' --project 'metamask' list`)
})
return itWorked
}
-async function checkIfVersionExists() {
+async function checkIfVersionExists () {
const versionAlreadyExists = await doesNotFail(async () => {
await exec(`sentry-cli releases --org 'metamask' --project 'metamask' info ${VERSION}`)
})
return versionAlreadyExists
}
-async function doesNotFail(asyncFn) {
+async function doesNotFail (asyncFn) {
try {
await asyncFn()
return true