Commit f463beb
grep: inline the return value of a function call used only once
Since e944d9d ("grep: rewrite an if/else condition to avoid
duplicate expression", 2016-06-25) the "ascii_only" variable has only
been used once in compile_regexp(), let's just inline it there.
This makes the code easier to read, and might make it marginally
faster depending on compiler optimizations.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent b14cf11 commit f463beb
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
654 | 653 | | |
655 | 654 | | |
656 | 655 | | |
657 | 656 | | |
658 | 657 | | |
659 | | - | |
660 | 658 | | |
661 | 659 | | |
662 | 660 | | |
| |||
673 | 671 | | |
674 | 672 | | |
675 | 673 | | |
676 | | - | |
| 674 | + | |
677 | 675 | | |
678 | 676 | | |
679 | 677 | | |
| |||
0 commit comments