mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
Rename the Length methods Len to follow GO standart
This commit is contained in:
1 parent
eb32089305
commit
29563aa94e
30 files changed
+134
-130
No files matched your search
@@ -218,7 +218,7 @@ func (iterator IBioSequenceBatch) Push(batch BioSequenceBatch) {
|
||||
if batch.IsNil() {
|
||||
log.Panicln("A Nil batch is pushed on the channel")
|
||||
}
|
||||
if batch.Length() == 0 {
|
||||
if batch.Len() == 0 {
|
||||
log.Panicln("An empty batch is pushed on the channel")
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ func (iterator IBioSequenceBatch) Count(recycle bool) (int, int, int) {
|
||||
for _, seq := range batch.Slice() {
|
||||
variants++
|
||||
reads += seq.Count()
|
||||
nucleotides += seq.Length()
|
||||
nucleotides += seq.Len()
|
||||
|
||||
if recycle {
|
||||
seq.Recycle()
|
||||
|
||||
Reference in new issue
Block a user