From dd0f5febecac8609af905695ff232da7f1ed82d6 Mon Sep 17 00:00:00 2001 From: Max Kirchberger Date: Sat, 2 Dec 2023 10:02:35 +0100 Subject: [PATCH] clean ups --- src/Webserver.API/Models/Responses/ApiTicketIdResponse.cs | 6 +++--- .../Services/FileHandling/ApiDirectoryBuilder.cs | 2 +- .../Services/FileParser/ApiWebAppConfigParser.cs | 2 +- src/Webserver.API/Webserver.API.csproj | 6 +++--- .../Webserver.Api.UnitTests.csproj | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Webserver.API/Models/Responses/ApiTicketIdResponse.cs b/src/Webserver.API/Models/Responses/ApiTicketIdResponse.cs index 127d30b..8cab8d3 100644 --- a/src/Webserver.API/Models/Responses/ApiTicketIdResponse.cs +++ b/src/Webserver.API/Models/Responses/ApiTicketIdResponse.cs @@ -23,9 +23,9 @@ public ApiTicketIdResponse() : base() /// public ApiTicketIdResponse(ApiSingleStringResponse singleStringResponse) : base() { - this.Id = string.Copy(singleStringResponse.Id); - this.JsonRpc = string.Copy(singleStringResponse.JsonRpc); - this.Result = string.Copy(singleStringResponse.Result); + this.Id = singleStringResponse.Id; + this.JsonRpc = singleStringResponse.JsonRpc; + this.Result = singleStringResponse.Result; } } } diff --git a/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs b/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs index 1880676..98479e7 100644 --- a/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs +++ b/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs @@ -117,7 +117,7 @@ public ApiFileResource Build(ApiDirectoryBuilderConfiguration parseConfiguration { throw new ApiDirectoryParserException("Missing parameter 'Type' or Type was invalid => 'None' or 0 ", serializationException); } - throw serializationException; + throw; } } diff --git a/src/Webserver.API/Services/FileParser/ApiWebAppConfigParser.cs b/src/Webserver.API/Services/FileParser/ApiWebAppConfigParser.cs index 6e8cc97..ef0df38 100644 --- a/src/Webserver.API/Services/FileParser/ApiWebAppConfigParser.cs +++ b/src/Webserver.API/Services/FileParser/ApiWebAppConfigParser.cs @@ -101,7 +101,7 @@ public ApiWebAppData Parse() { throw new ApiWebAppConfigParserException("Missing parameter 'Type' or Type was invalid => 'None' or 0 ", serializationException); } - throw serializationException; + throw; } } diff --git a/src/Webserver.API/Webserver.API.csproj b/src/Webserver.API/Webserver.API.csproj index f6206da..1494cd8 100644 --- a/src/Webserver.API/Webserver.API.csproj +++ b/src/Webserver.API/Webserver.API.csproj @@ -25,15 +25,15 @@ all runtime; build; native; contentfiles; analyzers - - + + - + \ No newline at end of file diff --git a/tests/Webserver.API.UnitTests/Webserver.Api.UnitTests.csproj b/tests/Webserver.API.UnitTests/Webserver.Api.UnitTests.csproj index b768bb5..e885974 100644 --- a/tests/Webserver.API.UnitTests/Webserver.Api.UnitTests.csproj +++ b/tests/Webserver.API.UnitTests/Webserver.Api.UnitTests.csproj @@ -20,11 +20,11 @@ all runtime; build; native; contentfiles; analyzers - - + + - + @@ -36,7 +36,7 @@ - + \ No newline at end of file