Skip to content

Commit

Permalink
[fix] formatting and Conditional expressions should declare precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed May 29, 2024
1 parent dab503c commit 9d5d8dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace Simplify.Web.Benchmark;

[MemoryDiagnoser]
public class ExpandoObjectAndDictionaryBenchmarks

{
[Params(1, 5, 20, 100, 300, 1000)]
public int NumValues;
Expand Down
1 change: 0 additions & 1 deletion src/Simplify.Web/Bootstrapper/Setup/BaseBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ protected IConfiguration Configuration

private ISimplifyWebSettings Settings { get; set; } = null!;


/// <summary>
/// Provides the `Simplify.Web` types to exclude from registrations.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Simplify.Web/Modules/Localization/LanguageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public LanguageManager(ISimplifyWebSettings settings, HttpContext context)
if (settings.AcceptCookieLanguage && TrySetLanguageFromCookie(context))
return;

if (!settings.AcceptHeaderLanguage || settings.AcceptHeaderLanguage && !TrySetLanguageFromRequestHeader(context))
if (!settings.AcceptHeaderLanguage || (settings.AcceptHeaderLanguage && !TrySetLanguageFromRequestHeader(context)))
if (!SetCurrentLanguage(settings.DefaultLanguage))
SetInvariantCulture();
}
Expand Down

0 comments on commit 9d5d8dd

Please sign in to comment.