Skip to content

Commit

Permalink
Trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladiwostok committed Oct 8, 2024
1 parent c5d852b commit 4865d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dscanner/analysis/lambda_return_check.d
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ extern (C++) class LambdaReturnCheck(AST) : BaseAnalyzerDmd
if (!tokenRange.canFind!(t => t.value == TOK.leftParenthesis))
{
auto start = tokenRange.front.loc.fileOffset;
auto firstParam = (*(lambda.getParameterList().parameters))[0];
AutoFix fix0;
auto firstParam = (*(lambda.getParameterList().parameters))[0];

if (hasParensOnParams((*(lambda.getParameterList().parameters))[0]))
fix0 = AutoFix.replacement(start, start + 3, "", "Remove arrow (use function body)");
Expand Down

0 comments on commit 4865d61

Please sign in to comment.