Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Jun 14, 2024
1 parent dae1856 commit e01657d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/silo/query_engine/actions/fasta_aligned.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void FastaAligned::validateOrderByFields(const Database& database) const {
}
}

namespace {
template <typename SymbolType>
std::string reconstructSequence(
const SequenceStorePartition<SymbolType>& sequence_store,
Expand All @@ -66,8 +67,8 @@ std::string reconstructSequence(
for (auto position_id = local.begin(); position_id != local.end(); position_id++) {
const Position<SymbolType>& 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);
}
}
Expand All @@ -80,6 +81,7 @@ std::string reconstructSequence(
}
return reconstructed_sequence;
}
} // namespace

QueryResult FastaAligned::execute(
const Database& database,
Expand Down
2 changes: 2 additions & 0 deletions src/silo/query_engine/actions/insertions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void InsertionAggregation<SymbolType>::validateOrderByFields(const Database& /*d
}
}

namespace {
template <typename SymbolType>
void validateSequenceNames(
const Database& database,
Expand All @@ -73,6 +74,7 @@ void validateSequenceNames(
)
}
}
} // namespace

template <typename SymbolType>
std::unordered_map<std::string, typename InsertionAggregation<SymbolType>::PrefilteredBitmaps>
Expand Down

0 comments on commit e01657d

Please sign in to comment.