Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WakeupTsai authored and hwchiu committed Jul 25, 2018
1 parent 4a195e8 commit f54b65a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prometheuscontroller/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ func GetContainer(sp *serviceprovider.Container, id string) (entity.ContainerMet
return container, err
}
if len(results) == 0 {
return container, err
// container doesn't exit
return container, nil
}

// resource
Expand Down

0 comments on commit f54b65a

Please sign in to comment.