mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-07 16:20:27 +00:00
correct a bug in func (worker SeqWorker) ChainWorkers(next SeqWorker) SeqWorker
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user