Skip to content

Commit

Permalink
server: fix unexpected output of probe command
Browse files Browse the repository at this point in the history
Signed-off-by: Luis Gustavo S. Barreto <gustavo@ossystems.com.br>
  • Loading branch information
gustavosbarreto authored and otavio committed Aug 20, 2019
1 parent bc30091 commit 82a74f7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions server/agent_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ func (ab *AgentBackend) probe(w http.ResponseWriter, r *http.Request) {
break
}
}

if fi == nil {
w.WriteHeader(500)
return
}
} else {
filename = target.Path
}
Expand All @@ -136,13 +131,7 @@ func (ab *AgentBackend) probe(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(500)
return
}
} else {
w.WriteHeader(500)
return
}
} else {
w.WriteHeader(500)
return
}
}

Expand Down

0 comments on commit 82a74f7

Please sign in to comment.