good morning!!!!

Skip to content
Snippets Groups Projects
Commit a39c7367 authored by Taylor Gerring's avatar Taylor Gerring
Browse files

bump last resort check out of ifelse

parent d90b71bc
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment