Skip to content

Commit

Permalink
Fix paren style
Browse files Browse the repository at this point in the history
  • Loading branch information
jimporter committed Jul 23, 2024
1 parent 1d01de8 commit a707d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/bencode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ namespace bencode {
}
} while(!state.empty());

if (all && begin != end)
if(all && begin != end)
throw syntax_error("extraneous character");
} catch(const std::exception &e) {
throw decode_error(e.what(), std::distance(orig_begin, begin),
Expand Down
2 changes: 1 addition & 1 deletion test/test_decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ auto decode_tests(Builder &_, Callable &&do_decode) {

auto str = dict.find("spam")->first;
expect(str, equal_to("spam"));
if constexpr (bencode::detail::is_view_v<typename OutType::string>) {
if constexpr(bencode::detail::is_view_v<typename OutType::string>) {
expect(&*str.begin(), within_data_memory);
expect(&*str.end(), within_data_memory);
}
Expand Down

0 comments on commit a707d2d

Please sign in to comment.