@@ -40,7 +40,7 @@ func (c *compileSaveCommand) execute(dir string, force bool, hosts []string) err
4040 if err != nil {
4141 return err
4242 }
43- return os .WriteFile (c .file , buffer .Bytes (), 0600 )
43+ return os .WriteFile (c .file , buffer .Bytes (), 0o600 )
4444}
4545
4646type compileCommand struct {
@@ -97,18 +97,18 @@ func (c *compileCommand) compileHost(host compiler.ExpandingHostConfig, hosts []
9797 return c .compiler .Compile (host )
9898}
9999
100- func (c * compileCommand ) printHostConfig (config compiler.HostEntity ) error {
101- _ , err := fmt .Fprintf (c .writer , "Host %v\n " , config .Host )
100+ func (c * compileCommand ) printHostConfig (cfg compiler.HostEntity ) error {
101+ _ , err := fmt .Fprintf (c .writer , "Host %v\n " , cfg .Host )
102102 if err != nil {
103103 return err
104104 }
105- if config .HostName != "" {
106- err = c .printHostConfigProperty ("HostName" , config .HostName )
105+ if cfg .HostName != "" {
106+ err = c .printHostConfigProperty ("HostName" , cfg .HostName )
107107 if err != nil {
108108 return err
109109 }
110110 }
111- for _ , e := range config .Config {
111+ for _ , e := range cfg .Config {
112112 err = c .printHostConfigProperty (e .Key , e .Value )
113113 if err != nil {
114114 return err
0 commit comments