Skip to content

Commit

Permalink
Fix diagnostic message for RCS0032 (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt authored Nov 28, 2024
1 parent 9fe4dc0 commit f7ed06f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix analyzer [RCS1213](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1213) ([PR](https://github.com/dotnet/roslynator/pull/1586))
- Improve code fixer for [RCS1228](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1228) ([PR](https://github.com/dotnet/roslynator/pull/1585))
- Fix diagnostic message for [RCS0032](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0032) ([PR](https://github.com/dotnet/roslynator/pull/1588))

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static void AnalyzeArrowExpressionClause(SyntaxNodeAnalysisContext conte
context,
DiagnosticRules.PlaceNewLineAfterOrBeforeArrowToken,
block.GetLocation(),
(block.First.IsToken) ? "before" : "after");
(newLinePosition == NewLinePosition.Before) ? "before" : "after");
}
}
}

0 comments on commit f7ed06f

Please sign in to comment.