correct a bug in func (worker SeqWorker) ChainWorkers(next SeqWorker) SeqWorker

This commit is contained in:
Eric Coissac
2025-08-11 15:09:49 +02:00
parent 6d204f6281
commit 82b6bb1ab6
2 changed files with 2 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "7a6d552"
var _Commit = "6d204f6"
var _Version = "Release 4.4.0"
// Version returns the version of the obitools package.

View File

@@ -194,11 +194,7 @@ func EvalAttributeWorker(expression map[string]string) obiseq.SeqWorker {
w = nil
for a, e := range expression {
if w == nil {
w = obiseq.EditAttributeWorker(a, e)
} else {
w.ChainWorkers(obiseq.EditAttributeWorker(a, e))
}
w = w.ChainWorkers(obiseq.EditAttributeWorker(a, e))
}
return w