Skip to content

Commit

Permalink
Gofmt all files.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarmol committed Jan 5, 2015
1 parent 9016655 commit 643d647
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestGetMachineinfo(t *testing.T) {
NumCores: 8,
MemoryCapacity: 31625871360,
DiskMap: map[string]info.DiskInfo{
"8:0": info.DiskInfo{
"8:0": {
Name: "sda",
Major: 8,
Minor: 0,
Expand Down
2 changes: 1 addition & 1 deletion container/docker/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (self *dockerContainerHandler) readLibcontainerConfig() (*libcontainer.Conf

// Translate the old config into the new config.
config = oldConfig.Config
for ns, _ := range oldConfig.OldNamespaces {
for ns := range oldConfig.OldNamespaces {
config.Namespaces = append(config.Namespaces, libcontainer.Namespace{
Name: ns,
})
Expand Down
2 changes: 1 addition & 1 deletion info/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (self *Node) AddNodeCache(c Cache) {
}

func (self *Node) AddPerCoreCache(c Cache) {
for idx, _ := range self.Cores {
for idx := range self.Cores {
self.Cores[idx].Caches = append(self.Cores[idx].Caches, c)
}
}
Expand Down
2 changes: 1 addition & 1 deletion pages/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func serveDockerPage(m manager.Manager, w http.ResponseWriter, u *url.URL) error
data = &pageData{
DisplayName: dockerContainersText,
ParentContainers: []link{
link{
{
Text: dockerContainersText,
Link: DockerPage,
}},
Expand Down
2 changes: 1 addition & 1 deletion pages/static/google_jsapi_js.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package static

const googleJsapiJs= `
const googleJsapiJs = `
if(!window['googleLT_']){window['googleLT_']=(new Date()).getTime();}if (!window['google']) {
window['google'] = {};
}
Expand Down
1 change: 0 additions & 1 deletion storage/memory/stats_buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"

"github.com/google/cadvisor/info"

)

func createStats(id int32) *info.ContainerStats {
Expand Down

0 comments on commit 643d647

Please sign in to comment.