remove TrimLeft as it's go1.1

Upstream-commit: 854039b6ba9c707af07f9966b39150ce23150920
Component: engine
This commit is contained in:
Victor Vieux
2013-06-03 17:25:51 +00:00
parent c899bd530a
commit 13478f8034
+1 -1
View File
@@ -65,7 +65,7 @@ func Changes(layers []string, rw string) ([]Change, error) {
file := filepath.Base(path)
// If there is a whiteout, then the file was removed
if strings.HasPrefix(file, ".wh.") {
originalFile := strings.TrimPrefix(file, ".wh.")
originalFile := file[len(".wh."):]
change.Path = filepath.Join(filepath.Dir(path), originalFile)
change.Kind = ChangeDelete
} else {