Skip to content

Commit

Permalink
Merge into pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
claunia committed Oct 5, 2023
1 parent 11131ce commit 089ba52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SCSI/Modes/1A.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static string PrettifyModePage_1A(ModePage_1A? modePage)
if(page.PS)
sb.AppendLine("\t" + Localization.Parameters_can_be_saved);

if(page is { Standby: true, StandbyTimer: > 0 } || page is { Standby_Y: true, StandbyTimer_Y: > 0 })
if(page is { Standby: true, StandbyTimer: > 0 } or { Standby_Y: true, StandbyTimer_Y: > 0 })
{
if(page is { Standby: true, StandbyTimer: > 0 })
sb.AppendFormat("\t" + "Standby timer Z is set to {0} ms", page.StandbyTimer * 100).AppendLine();
Expand All @@ -163,9 +163,7 @@ public static string PrettifyModePage_1A(ModePage_1A? modePage)
else
sb.AppendLine("\t" + "Drive will not enter standby mode");

if(page is { Idle : true, IdleTimer : > 0 } ||
page is { Idle_B: true, IdleTimer_B: > 0 } ||
page is { Idle_C: true, IdleTimer_C: > 0 })
if(page is { Idle: true, IdleTimer: > 0 } or { Idle_B: true, IdleTimer_B: > 0 } or { Idle_C: true, IdleTimer_C: > 0 })
{
if(page is { Idle: true, IdleTimer: > 0 })
sb.AppendFormat("\t" + "Idle timer A is set to {0} ms", page.IdleTimer * 100).AppendLine();
Expand Down

0 comments on commit 089ba52

Please sign in to comment.