mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 08:52:23 +00:00
Bump init and containerd package to v1.0.0-beta.1
golint on pkg/init now complains: golint... ./init.go:199:2: redundant if ...; err != nil check, just return error instead. Resulting in a change which doesn't seem like an improvement to me. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
@@ -196,11 +196,7 @@ func copyFS(newRoot string) error {
|
||||
}
|
||||
|
||||
// chdir to "/" to fix up . and ..
|
||||
if err := os.Chdir("/"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return os.Chdir("/")
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
Reference in New Issue
Block a user