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:
parent
18792a6305
commit
b9a270e5e7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue