From b5d46e2ec3eafc6e80f5e3c70f7d99a507d7affa Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 5 Oct 2017 18:55:02 +0200 Subject: [PATCH] impl: don't reference m.entries again --- cmd/config_mapfilter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/config_mapfilter.go b/cmd/config_mapfilter.go index 4424550..ac7a24f 100644 --- a/cmd/config_mapfilter.go +++ b/cmd/config_mapfilter.go @@ -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() {