Skip to content

Commit 7a4408f

Browse files
committed
Merge pull request #794 from dotcloud/780-diff-fix2
- Runtime: remove TrimLeft as it's go1.1
2 parents 070923b + 854039b commit 7a4408f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

changes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func Changes(layers []string, rw string) ([]Change, error) {
6565
file := filepath.Base(path)
6666
// If there is a whiteout, then the file was removed
6767
if strings.HasPrefix(file, ".wh.") {
68-
originalFile := strings.TrimPrefix(file, ".wh.")
68+
originalFile := file[len(".wh."):]
6969
change.Path = filepath.Join(filepath.Dir(path), originalFile)
7070
change.Kind = ChangeDelete
7171
} else {

0 commit comments

Comments
 (0)