Applied code fix

This commit is contained in:
Thorsten Sommer 2025-02-25 19:19:46 +01:00
parent 319d3f9b94
commit 5a8b5154c9
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 21 additions and 30 deletions

View File

@ -2,9 +2,7 @@ namespace AIStudio.Assistants.ERI;
public static class AllowedLLMProvidersExtensions
{
public static string Description(this AllowedLLMProviders provider)
{
return provider switch
public static string Description(this AllowedLLMProviders provider) => provider switch
{
AllowedLLMProviders.NONE => "Please select what kind of LLM provider are allowed for this data source",
AllowedLLMProviders.ANY => "Any LLM provider is allowed: users might choose a cloud-based or a self-hosted provider",
@ -12,5 +10,4 @@ public static class AllowedLLMProvidersExtensions
_ => "Unknown option was selected"
};
}
}

View File

@ -10,9 +10,7 @@ public static class DataSourceTypeExtension
/// </summary>
/// <param name="type">The data source type.</param>
/// <returns>The display name of the data source type.</returns>
public static string GetDisplayName(this DataSourceType type)
{
return type switch
public static string GetDisplayName(this DataSourceType type) => type switch
{
DataSourceType.LOCAL_FILE => "Local File",
DataSourceType.LOCAL_DIRECTORY => "Local Directory",
@ -20,5 +18,4 @@ public static class DataSourceTypeExtension
_ => "None",
};
}
}

View File

@ -2,9 +2,7 @@ namespace AIStudio.Settings.DataModel;
public static class ThemesExtensions
{
public static string GetName(this Themes theme)
{
return theme switch
public static string GetName(this Themes theme) => theme switch
{
Themes.SYSTEM => "Synchronized with the operating system settings",
Themes.LIGHT => "Always use light theme",
@ -12,5 +10,4 @@ public static class ThemesExtensions
_ => "Unknown setting",
};
}
}