1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

grep: Simplify lambda signature for readability

Those 'optional' arguments are always supplied anyway. Making them
compulsory means there's one thing fewer to keep track of.
This commit is contained in:
Ben Wiederhake 2021-11-05 00:18:12 +01:00 committed by Brian Gianforcaro
parent 18792a6305
commit b9a270e5e7

View file

@ -129,7 +129,7 @@ int main(int argc, char** argv)
return 1;
}
auto matches = [&](StringView str, StringView filename = "", bool print_filename = false, bool is_binary = false) {
auto matches = [&](StringView str, StringView filename, bool print_filename, bool is_binary) {
size_t last_printed_char_pos { 0 };
if (is_binary && binary_mode == BinaryFileMode::Skip)
return false;