Skip to content

Commit

Permalink
Astyle
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Qrox and github-actions[bot] authored Jan 1, 2024
1 parent f2b370a commit f66e887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text_snippets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ std::optional<translation> snippet_library::random_from_category( const std::str
const uint64_t ids_weighted_sum =
it->second.ids.empty() ? 0 : it->second.ids.back().weight_acc;
const uint64_t weight_sum = ids_weighted_sum +
( it->second.no_id.empty() ? 0 : it->second.no_id.back().weight_acc );
( it->second.no_id.empty() ? 0 : it->second.no_id.back().weight_acc );
if( weight_sum == 0 ) {
return std::nullopt;
}
Expand Down

0 comments on commit f66e887

Please sign in to comment.