Skip to content

Commit 03794ef

Browse files
committed
fix clang tidy
1 parent 6470d1a commit 03794ef

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/library_checker_aizu_tests/data_structures/simple_tree_inc_queue.test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ int main() {
5252
assert(l <= m && m <= r - 1);
5353
assert(val == rmq.query(l, m));
5454
if (which == 0) return 0;
55-
else if (which == 1) return 1;
56-
else return rnd(0, 1);
55+
if (which == 1) return 1;
56+
return rnd(0, 1);
5757
});
5858
st.min_left(l, r - 1,
5959
[&](int m, const array<int, 2>& val) -> bool {
6060
assert(l <= m && m <= r - 1);
6161
assert(val == rmq.query(m, r - 1));
6262
if (which == 0) return 0;
63-
else if (which == 1) return 1;
64-
else return rnd(0, 1);
63+
if (which == 1) return 1;
64+
return rnd(0, 1);
6565
});
6666
array<int, 2> line = rmq.query(l, r - 1);
6767
cout << (1LL * line[0] * x + line[1]) % mod

tests/library_checker_aizu_tests/data_structures/simple_tree_queue.test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ int main() {
5353
assert(l < m && m <= r);
5454
assert(val == rmq.query(l, m - 1));
5555
if (which == 0) return 0;
56-
else if (which == 1) return 1;
57-
else return rnd(0, 1);
56+
if (which == 1) return 1;
57+
return rnd(0, 1);
5858
});
5959
st.min_left(l, r,
6060
[&](int m, const array<int, 2>& val) -> bool {
6161
assert(l <= m && m < r);
6262
assert(val == rmq.query(m, r - 1));
6363
if (which == 0) return 0;
64-
else if (which == 1) return 1;
65-
else return rnd(0, 1);
64+
if (which == 1) return 1;
65+
return rnd(0, 1);
6666
});
6767
if (l == r) cout << x << '\n';
6868
else {

0 commit comments

Comments
 (0)