Fix IDE0059: Remove unnecessary value assignment

This commit is contained in:
Haselnussbomber 2025-10-24 04:20:37 +02:00
parent 3050ea7ded
commit 753660ebcf
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
2 changed files with 2 additions and 3 deletions

View file

@ -591,7 +591,7 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
{
// https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/animation/animation_win.cc;l=29?q=ReducedMotion&ss=chromium
var winAnimEnabled = 0;
var success = false;
bool success;
unsafe
{
success = Windows.Win32.PInvoke.SystemParametersInfo(

View file

@ -56,11 +56,10 @@ public static class ColorHelpers
var min = Math.Min(r, Math.Min(g, b));
var h = max;
var s = max;
var v = max;
var d = max - min;
s = max == 0 ? 0 : d / max;
var s = max == 0 ? 0 : d / max;
if (max == min)
{