mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +00:00
Run gofmt and fix vet errors
This commit is contained in:
@@ -173,7 +173,7 @@ func writeRespawn() error {
|
||||
p := path.Join("/etc/respawn.conf.d", f.Name())
|
||||
content, err := ioutil.ReadFile(p)
|
||||
if err != nil {
|
||||
log.Error("Failed to read %s: %v", p, err)
|
||||
log.Errorf("Failed to read %s: %v", p, err)
|
||||
continue
|
||||
}
|
||||
respawn += fmt.Sprintf("\n%s", string(content))
|
||||
|
@@ -202,12 +202,12 @@ func TestSet(t *testing.T) {
|
||||
}
|
||||
|
||||
type OuterData struct {
|
||||
One Data `"yaml:one"`
|
||||
One Data `yaml:"one"`
|
||||
}
|
||||
|
||||
type Data struct {
|
||||
Two bool `"yaml:two"`
|
||||
Three bool `"yaml:three"`
|
||||
Two bool `yaml:"two"`
|
||||
Three bool `yaml:"three"`
|
||||
}
|
||||
|
||||
func TestMapMerge(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user