Skip to content
Snippets Groups Projects
Commit 4ba1125b authored by ale's avatar ale
Browse files

fix logic error

parent a76897ce
No related branches found
No related tags found
Loading
......@@ -118,10 +118,7 @@ func createMount(args []string) {
// Check if the mount already exists.
client := getClient()
oldm, err := client.GetMount(path)
if err != nil {
log.Fatal(err)
}
oldm, _ := client.GetMount(path)
if oldm != nil {
log.Fatal("A mount with that name already exists!")
}
......
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