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

fix logic error

parent a76897ce
Branches
No related tags found
No related merge requests found
......@@ -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.
Please register or to comment