Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Enrico Seiler <[email protected]>
  • Loading branch information
smehringer and eseiler authored May 15, 2020
1 parent 20faa11 commit 76baa44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/seqan3/search/detail/search_scheme_algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class search_scheme_algorithm : protected policies_t...
search_param error_state,
delegate_t const & on_hit_delegate)
{
if constexpr (traits_t::search_single_best_hit || traits_t::search_all_best_hits || traits_t::search_strata_hits)
if constexpr (!traits_t::search_all_hits)
{
auto max_total = error_state.total;
error_state.total = 0; // start search with less errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class unidirectional_search_algorithm : protected policies_t...
query_t & query,
search_param error_state)
{
if constexpr (traits_t::search_single_best_hit || traits_t::search_all_best_hits || traits_t::search_strata_hits)
if constexpr (!traits_t::search_all_hits)
{
auto max_total = error_state.total;
error_state.total = 0; // start search with less errors
Expand Down
2 changes: 1 addition & 1 deletion test/unit/search/configuration/mode_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <gtest/gtest.h>

#include <seqan3/search/configuration/mode.hpp>
#include <seqan3/core/detail/pack_algorithm.hpp>
#include <seqan3/search/configuration/mode.hpp>

#include "../../core/algorithm/pipeable_config_element_test_template.hpp"

Expand Down

0 comments on commit 76baa44

Please sign in to comment.