diff options
| author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-06-25 18:03:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-25 18:03:08 +0200 |
| commit | bddb2a148355ef2ce326d47e8e5217bd8af36a98 (patch) | |
| tree | 0f6c1b76179df90c2085ced298b831e8bd2cb4c7 /src/Ryujinx.Tests.Unicorn/IndexedProperty.cs | |
| parent | e3bacfa77481738aabee5f8b8be3f8ff91132c43 (diff) | |
[Ryujinx.Tests.Unicorn] Address dotnet-format issues (#5391)
* dotnet format style --severity info
Some changes were manually reverted.
* Restore a few unused methods and variables
* Address most dotnet format whitespace warnings
* Apply dotnet format whitespace formatting
A few of them have been manually reverted and the corresponding warning was silenced
* Add comments to disabled warnings
* Simplify properties and array initialization, Use const when possible, Remove trailing commas
* Revert "Simplify properties and array initialization, Use const when possible, Remove trailing commas"
This reverts commit 9462e4136c0a2100dc28b20cf9542e06790aa67e.
* dotnet format whitespace after rebase
* Final dotnet format pass and fix naming rule violations
Diffstat (limited to 'src/Ryujinx.Tests.Unicorn/IndexedProperty.cs')
| -rw-r--r-- | src/Ryujinx.Tests.Unicorn/IndexedProperty.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Ryujinx.Tests.Unicorn/IndexedProperty.cs b/src/Ryujinx.Tests.Unicorn/IndexedProperty.cs index 65d445fc..347b91a0 100644 --- a/src/Ryujinx.Tests.Unicorn/IndexedProperty.cs +++ b/src/Ryujinx.Tests.Unicorn/IndexedProperty.cs @@ -4,12 +4,12 @@ namespace Ryujinx.Tests.Unicorn { public class IndexedProperty<TIndex, TValue> { - private Func<TIndex, TValue> _getFunc; - private Action<TIndex, TValue> _setAction; + private readonly Func<TIndex, TValue> _getFunc; + private readonly Action<TIndex, TValue> _setAction; public IndexedProperty(Func<TIndex, TValue> getFunc, Action<TIndex, TValue> setAction) { - _getFunc = getFunc; + _getFunc = getFunc; _setAction = setAction; } |
