From e01657dba457d5a6ccc45dfc6d09f65472e59225 Mon Sep 17 00:00:00 2001 From: Alexander Taepper Date: Fri, 14 Jun 2024 16:28:32 +0200 Subject: [PATCH] fix: linter errors --- src/silo/query_engine/actions/fasta_aligned.cpp | 6 ++++-- src/silo/query_engine/actions/insertions.cpp | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/silo/query_engine/actions/fasta_aligned.cpp b/src/silo/query_engine/actions/fasta_aligned.cpp index 17b45977e..7a242449c 100644 --- a/src/silo/query_engine/actions/fasta_aligned.cpp +++ b/src/silo/query_engine/actions/fasta_aligned.cpp @@ -42,6 +42,7 @@ void FastaAligned::validateOrderByFields(const Database& database) const { } } +namespace { template std::string reconstructSequence( const SequenceStorePartition& sequence_store, @@ -66,8 +67,8 @@ std::string reconstructSequence( for (auto position_id = local.begin(); position_id != local.end(); position_id++) { const Position& position = sequence_store.positions.at(position_id); for (const auto symbol : SymbolType::SYMBOLS) { - if (!position.isSymbolFlipped(symbol) && !position.isSymbolDeleted(symbol) - && position.getBitmap(symbol)->contains(sequence_id)) { + if (!position.isSymbolFlipped(symbol) && !position.isSymbolDeleted(symbol) && + position.getBitmap(symbol)->contains(sequence_id)) { reconstructed_sequence[position_id] = SymbolType::symbolToChar(symbol); } } @@ -80,6 +81,7 @@ std::string reconstructSequence( } return reconstructed_sequence; } +} // namespace QueryResult FastaAligned::execute( const Database& database, diff --git a/src/silo/query_engine/actions/insertions.cpp b/src/silo/query_engine/actions/insertions.cpp index df7112fb4..bdb9c1cfa 100644 --- a/src/silo/query_engine/actions/insertions.cpp +++ b/src/silo/query_engine/actions/insertions.cpp @@ -58,6 +58,7 @@ void InsertionAggregation::validateOrderByFields(const Database& /*d } } +namespace { template void validateSequenceNames( const Database& database, @@ -73,6 +74,7 @@ void validateSequenceNames( ) } } +} // namespace template std::unordered_map::PrefilteredBitmaps>