Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Swiftlint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyd committed Apr 27, 2023
1 parent 094b3f3 commit 9afc333
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Emitron/Emitron/Guardpost/Guardpost.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ public extension Guardpost {

// This will prevent sharing cookies with Safari, which means no auto-login
// However, it also means that you can actually log out, which is good, I guess.
#if (!DEBUG)
authSession.prefersEphemeralWebBrowserSession = true
#endif

authSession.start()
}
Expand Down
3 changes: 1 addition & 2 deletions Emitron/Emitron/Models/DataCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ extension DataCache {
cacheUpdate.progressions.forEach { progressions[$0.contentID] = $0 }
cacheUpdate.groups.forEach { groupIndexedGroups[$0.id] = $0 }

// swiftlint:disable generic_type_name
func mergeWithCacheUpdate<contentID: Emitron.contentID>(
func mergeWithCacheUpdate<contentID: Emitron.contentID>( // swiftlint:disable:this generic_type_name
_ dictionary: inout [Int: [contentID]],
_ getContentID: (DataCacheUpdate) -> [contentID]
) {
Expand Down
4 changes: 4 additions & 0 deletions Emitron/Emitron/Persistence/EmitronDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import GRDB

// We use `t` as a variable name rather a lot
// swiftlint:disable identifier_name

/// A type responsible for initialising the application's database
Expand Down Expand Up @@ -170,3 +171,6 @@ enum EmitronDatabase {
return migrator
}
}

// Stop swiftlint complaining
// swiftlint:enable identifier_name

0 comments on commit 9afc333

Please sign in to comment.