mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 07:48:31 +07:00
Fixed more warnings (#9401)
* fix: fix FunctionParameterNaming warnings * fix: fix InvalidPackageDeclaration warnings * fix: fix MatchingDeclarationName warnings * fix: fix WrongEqualsTypeParameter warnings * fix: fix UnusedPrivateProperty warnings * fix: fix UseCheckOrError warningsU * fix: fix UseRequire warningsU * detekt: disabled SpreadOperator rule * fix: resolve MemberNameEqualsClassName rule * detekt: disabled ForbiddenComment rule * fix: resolved SwallowedException warning * fix: resolved ThrowingExceptionsWithoutMessageOrCause warning * fix: resolved EmptyFunctionBlock warning * fix: resolved EmptyFunctionBlock warning * fix: resolved InstanceOfCheckForError warning * detekt: disable TooGenericExceptionCaught warning * detekt: disable TooGenericExceptionThrown warning * fix: resolve part of NestedBlockDepth warnings
This commit is contained in:
@ -202,7 +202,7 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
|
||||
gameIds[count] = gamePreview.gameId
|
||||
gameNames[count] = gameFile.name()
|
||||
count++
|
||||
} catch (ex: Throwable) {
|
||||
} catch (_: Throwable) {
|
||||
//only loadGamePreviewFromFile can throw an exception
|
||||
//nothing will be added to the arrays if it fails
|
||||
//just skip one file
|
||||
|
Reference in New Issue
Block a user