diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-27 04:04:26 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-27 04:04:26 +0800 |
commit | a39c73672efd542b53b79fdadb89afec93498cc1 (patch) | |
tree | 0bf615e07413bbb1cb32c8e97002bf4a031075e6 /ethutil | |
parent | d90b71bc5518e1f794268fe58f62525302287bd3 (diff) | |
download | dexon-a39c73672efd542b53b79fdadb89afec93498cc1.tar.gz dexon-a39c73672efd542b53b79fdadb89afec93498cc1.tar.zst dexon-a39c73672efd542b53b79fdadb89afec93498cc1.zip |
bump last resort check out of ifelse
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/common.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ethutil/common.go b/ethutil/common.go index 5fd9a06e2..9b66763b8 100644 --- a/ethutil/common.go +++ b/ethutil/common.go @@ -36,13 +36,14 @@ func DefaultAssetPath() string { default: assetPath = "." } + } - // Check if the assetPath exists. If not, try the source directory - // This happens when binary is run from outside cmd/mist directory - if _, err := os.Stat(assetPath); os.IsNotExist(err) { - assetPath = path.Join(srcdir, "assets") - } + // Check if the assetPath exists. If not, try the source directory + // This happens when binary is run from outside cmd/mist directory + if _, err := os.Stat(assetPath); os.IsNotExist(err) { + assetPath = path.Join(srcdir, "assets") } + return assetPath } |