| ... | ... |
@@ -65,7 +65,7 @@ func Changes(layers []string, rw string) ([]Change, error) {
|
| 65 | 65 |
file := filepath.Base(path) |
| 66 | 66 |
// If there is a whiteout, then the file was removed |
| 67 | 67 |
if strings.HasPrefix(file, ".wh.") {
|
| 68 |
- originalFile := strings.TrimLeft(file, ".wh.") |
|
| 68 |
+ originalFile := strings.TrimPrefix(file, ".wh.") |
|
| 69 | 69 |
change.Path = filepath.Join(filepath.Dir(path), originalFile) |
| 70 | 70 |
change.Kind = ChangeDelete |
| 71 | 71 |
} else {
|