From d0a908f96ccb24a1a680d7e7f95ec37bdcc836be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sun, 10 Sep 2023 23:12:05 +0200 Subject: [PATCH] removes not used setting from app settings --- PiwigoDirectorySync/PiwigoDirectorySync.csproj | 3 --- PiwigoDirectorySync/Settings.cs | 4 +--- PiwigoDirectorySync/appsettings.json | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/PiwigoDirectorySync/PiwigoDirectorySync.csproj b/PiwigoDirectorySync/PiwigoDirectorySync.csproj index f866c7c..abe269a 100644 --- a/PiwigoDirectorySync/PiwigoDirectorySync.csproj +++ b/PiwigoDirectorySync/PiwigoDirectorySync.csproj @@ -34,9 +34,6 @@ - - .dockerignore - Jenkinsfile diff --git a/PiwigoDirectorySync/Settings.cs b/PiwigoDirectorySync/Settings.cs index 5b2b827..4f8c543 100644 --- a/PiwigoDirectorySync/Settings.cs +++ b/PiwigoDirectorySync/Settings.cs @@ -3,7 +3,5 @@ internal class Settings { public string DbProvider { get; set; } = null!; - public string ImageRootDirectory { get; set; } = null!; - - public bool HasErrors => string.IsNullOrEmpty(DbProvider) || string.IsNullOrEmpty(ImageRootDirectory); + public bool HasErrors => string.IsNullOrEmpty(DbProvider); } \ No newline at end of file diff --git a/PiwigoDirectorySync/appsettings.json b/PiwigoDirectorySync/appsettings.json index 484a5bc..c8b6379 100644 --- a/PiwigoDirectorySync/appsettings.json +++ b/PiwigoDirectorySync/appsettings.json @@ -12,7 +12,6 @@ "InMemory": "InMemorySyncDb" }, "Settings": { - "DbProvider": "Sqlite", - "ImageRootDirectory": ".\\" + "DbProvider": "Sqlite" } } \ No newline at end of file