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