Skip to content

Commit

Permalink
Remove extraneous line
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Cha <Alan.cha1@ibm.com>
  • Loading branch information
Alan-Cha committed Sep 8, 2023
1 parent 8578e5d commit c5c332b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ func getAbnDashboard(w http.ResponseWriter, r *http.Request) {
log.Logger.Tracef("getAbnDashboard called for application %s", namespaceApplication)

// identify the routemap for the application
namespace, name := util.SplitApplication(namespaceApplication)
rm := allRoutemaps.GetAllRoutemaps().GetRoutemapFromNamespaceName(namespace, name)
rm := allRoutemaps.GetAllRoutemaps().GetRoutemapFromNamespaceName(namespace, application)
if rm == nil || reflect.ValueOf(rm).IsNil() {
http.Error(w, fmt.Sprintf("unknown application %s", namespaceApplication), http.StatusBadRequest)
return
Expand Down

0 comments on commit c5c332b

Please sign in to comment.