Skip to content

Commit

Permalink
Prefer in parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
josepho0918 committed May 30, 2024
1 parent 14e5fb4 commit fb88e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ internal class Program
{
private static readonly SemaphoreSlim sem = new(1);

private static bool HasTrailingBlanks(string file_path)
private static bool HasTrailingBlanks(in string file_path)
{
using var file = File.OpenText(file_path);
string? line;
Expand All @@ -19,7 +19,7 @@ private static bool HasTrailingBlanks(string file_path)
return false;
}

private static void RemoveTrailingBlanks(string file_path)
private static void RemoveTrailingBlanks(in string file_path)
{
if (!HasTrailingBlanks(file_path)) return;

Expand Down

0 comments on commit fb88e2e

Please sign in to comment.