mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Convert into ?: operator.
This commit is contained in:
@@ -757,10 +757,9 @@ partial class Dump
|
||||
// Set speed
|
||||
if(_speedMultiplier >= 0)
|
||||
{
|
||||
if(_speed == 0)
|
||||
UpdateStatus?.Invoke(Localization.Core.Setting_speed_to_MAX);
|
||||
else
|
||||
UpdateStatus?.Invoke(string.Format(Localization.Core.Setting_speed_to_0_x, _speed));
|
||||
UpdateStatus?.Invoke(_speed == 0
|
||||
? Localization.Core.Setting_speed_to_MAX
|
||||
: string.Format(Localization.Core.Setting_speed_to_0_x, _speed));
|
||||
|
||||
_speed *= _speedMultiplier;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user