impl: don't reference m.entries again

This commit is contained in:
Christian Schwarz 2017-10-05 18:55:02 +02:00
parent 83d450b1f2
commit b5d46e2ec3

View File

@ -124,7 +124,7 @@ func (m DatasetMapFilter) Map(source *zfs.DatasetPath) (target *zfs.DatasetPath,
err = fmt.Errorf("mapping target is not a dataset path: %s", err)
return
}
if m.entries[mi].subtreeMatch {
if me.subtreeMatch {
// strip common prefix
extendComps := source.Copy()
if me.path.Empty() {