Merge pull request #246 from satnam6502/master

Fix a minor typo in the README.md file.
This commit is contained in:
Vish Kannan 2014-09-22 15:28:48 -07:00
commit 7663955763
2 changed files with 2 additions and 3 deletions

View File

@ -134,4 +134,4 @@ cAdvisor aims to improve the resource usage and performance characteristics of r
## Community
Contributions, questions, and comments are all welcomed and encouraged! cAdvisor developers hand out in [#google-containers](http://webchat.freenode.net/?channels=google-containers) room on freenode.net. We also have the [google-containers Google Groups mailing list](https://groups.google.com/forum/#!forum/google-containers).
Contributions, questions, and comments are all welcomed and encouraged! cAdvisor developers hang out in [#google-containers](http://webchat.freenode.net/?channels=google-containers) room on freenode.net. We also have the [google-containers Google Groups mailing list](https://groups.google.com/forum/#!forum/google-containers).

View File

@ -172,8 +172,7 @@ func getContainerInfoRequest(body io.ReadCloser) (*info.ContainerInfoRequest, er
query.NumStats = 64
decoder := json.NewDecoder(body)
err := decoder.Decode(&query)
if err != nil && err != io.EOF {
if err := decoder.Decode(&query); err != nil && err != io.EOF {
return nil, fmt.Errorf("unable to decode the json value: %s", err)
}