summaryrefslogtreecommitdiff
path: root/libpod/stats.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-08 18:00:11 +0200
committerGitHub <noreply@github.com>2019-07-08 18:00:11 +0200
commited3acaecbfeead3b0fef5928e47ecc9f34cd8d5b (patch)
tree2ef0f0a0c9f3c2cd8798dee04de8c3d5ab292c36 /libpod/stats.go
parent1055b22e9b900e5f4d41f39b506de4f2d1aa2f8e (diff)
parent1d36501f961889f554daf3c696fe95443ef211b6 (diff)
downloadpodman-ed3acaecbfeead3b0fef5928e47ecc9f34cd8d5b.tar.gz
podman-ed3acaecbfeead3b0fef5928e47ecc9f34cd8d5b.tar.bz2
podman-ed3acaecbfeead3b0fef5928e47ecc9f34cd8d5b.zip
Merge pull request #3496 from baude/golandcodeinspect
code cleanup
Diffstat (limited to 'libpod/stats.go')
-rw-r--r--libpod/stats.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/libpod/stats.go b/libpod/stats.go
index eb5ed95c4..52af824bb 100644
--- a/libpod/stats.go
+++ b/libpod/stats.go
@@ -46,10 +46,6 @@ func (c *Container) GetContainerStats(previousStats *ContainerStats) (*Container
return stats, errors.Wrapf(err, "unable to obtain cgroup stats")
}
conState := c.state.State
- if err != nil {
- return stats, errors.Wrapf(err, "unable to determine container state")
- }
-
netStats, err := getContainerNetIO(c)
if err != nil {
return nil, err