1
0
mirror of https://github.com/rancher/os.git synced 2025-09-22 11:00:54 +00:00

Fix golint check error

https://github.com/rancher/os/issues/2166
This commit is contained in:
niusmallnan
2017-12-06 13:45:49 +08:00
parent 1205428d20
commit 929bb5abce
8 changed files with 13 additions and 62 deletions

View File

@@ -29,11 +29,7 @@ func PrepWorkspace(workspace string) error {
}
scripts := path.Join(workspace, "scripts")
if err := system.EnsureDirectoryExists(scripts); err != nil {
return err
}
return nil
return system.EnsureDirectoryExists(scripts)
}
func PersistScriptInWorkspace(script config.Script, workspace string) (string, error) {