Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WakeupTsai committed Jul 25, 2018
1 parent 104c894 commit f34debc
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 f34debc

Please sign in to comment.