Skip to content

Commit 854039b

Browse files
committed
remove TrimLeft as it's go1.1
1 parent 070923b commit 854039b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)