remove TrimLeft as it's go1.1
This commit is contained in:
parent
070923b14f
commit
854039b6ba
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue