From 7893bd7b151ec8b806b4127f6dd07c72a0470a42 Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Wed, 27 Nov 2024 20:46:28 +0100 Subject: [PATCH] fix linting errors --- project_name.Tests/UnitTest1.cs | 2 +- project_name/HelloWorldProvider.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project_name.Tests/UnitTest1.cs b/project_name.Tests/UnitTest1.cs index d659ed6..2e6a555 100644 --- a/project_name.Tests/UnitTest1.cs +++ b/project_name.Tests/UnitTest1.cs @@ -1,6 +1,6 @@ namespace project_name.Tests; -using project_name; +using project_name; public class UnitTest1 { diff --git a/project_name/HelloWorldProvider.cs b/project_name/HelloWorldProvider.cs index fc4406d..141d83a 100644 --- a/project_name/HelloWorldProvider.cs +++ b/project_name/HelloWorldProvider.cs @@ -2,9 +2,9 @@ public class HelloWorldProvider { - public string GetHelloWorld(string name = null) + public string GetHelloWorld(string? name = null) { - if(string.IsNullOrEmpty(name)) + if (string.IsNullOrEmpty(name)) { return "Hello world!"; }