Skip to content

Commit

Permalink
Merge pull request #20 from sir-gon/develop
Browse files Browse the repository at this point in the history
[BUGFIX] sonarcloud: Remove this method and declare a constant for th…
  • Loading branch information
sir-gon authored May 13, 2024
2 parents c5336d2 + 2496b73 commit 986b439
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion algorithm-exercises-csharp/Hello.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ namespace algorithm_exercises_csharp;

public class HelloWorld
{
const string message = "Hello World!";

[ExcludeFromCodeCoverage]
protected HelloWorld() {}

public static string Hello()
{
return "Hello World!";
return HelloWorld.message;
}

public static HelloWorld Create() {
Expand Down

0 comments on commit 986b439

Please sign in to comment.