Skip to content

Commit

Permalink
Clang-Tidy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad authored Jun 26, 2020
1 parent 5a7f751 commit dab534b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/reaction_ensemble.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ double average_list_of_allowed_entries(const std::vector<T> &rng) {
* this value.
*/
inline double find_minimum_non_negative_value(std::vector<double> const &rng) {
if (rng.size() == 0)
if (rng.empty())
throw std::runtime_error("range is empty\n");
// think of negative histogram values that indicate not
// allowed energies in the case of an energy observable
Expand Down

0 comments on commit dab534b

Please sign in to comment.