浏览代码

bump last resort check out of ifelse

Taylor Gerring 10 年之前
父节点
当前提交
a39c73672e
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      ethutil/common.go

+ 6 - 5
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
 }