Lint changes (#7802)

- Fixes current lint issues
- Changes lint task to lintKotlin on PRs
This commit is contained in:
Andreas
2022-08-18 20:06:32 +02:00
committed by GitHub
parent 1f34f5277c
commit 09abfc7843
9 changed files with 24 additions and 34 deletions

View File

@@ -103,9 +103,9 @@ object Migrations {
// Reset sorting preference if using removed sort by source
val oldSortingMode = prefs.getInt(PreferenceKeys.librarySortingMode, 0)
if (oldSortingMode == 5 /* SOURCE */) {
if (oldSortingMode == 5) { // SOURCE = 5
prefs.edit {
putInt(PreferenceKeys.librarySortingMode, 0 /* ALPHABETICAL */)
putInt(PreferenceKeys.librarySortingMode, 0) // ALPHABETICAL = 0
}
}
}