Fix analysis and style formatting errors #31

Closed
qurious-pixel wants to merge 6 commits from patch-1 into master
2 changed files with 8 additions and 4 deletions

View File

@ -39,9 +39,10 @@ jobs:
- name: Print dotnet format version - name: Print dotnet format version
run: dotnet format --version run: dotnet format --version
- name: Run dotnet format whitespace # Pause for now. Fix errors with style and analyzers first
run: | #- name: Run dotnet format whitespace
dotnet format whitespace --verify-no-changes --report ./whitespace-report.json -v d # run: |
# dotnet format whitespace --verify-no-changes --report ./whitespace-report.json -v d
# For some unknown reason this step sometimes fails with exit code 139 (segfault?), # For some unknown reason this step sometimes fails with exit code 139 (segfault?),
# so in that case we'll try again (3 tries max). # so in that case we'll try again (3 tries max).

View File

@ -98,11 +98,14 @@ namespace Ryujinx.UI.Common.Helper
if (baseApplicationExtension is not (".nro" or ".nso")) if (baseApplicationExtension is not (".nro" or ".nso"))
return IsFirmwareValid(contentManager, out error); return IsFirmwareValid(contentManager, out error);
error = UserError.Success;
return true;
} }
error = UserError.ApplicationNotFound; error = UserError.ApplicationNotFound;
return error is UserError.Success; return false;
} }
} }
} }