Skip to content

Commit

Permalink
fix code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lawmicha committed Jan 4, 2024
1 parent 9ffefb3 commit 5b5340e
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ extension StorageEngine {
}
}

static func requiresAuthPlugin(_ apiPlugin: APICategoryPlugin,
authModeStrategy: AuthModeStrategyType) -> Bool {
static func requiresAuthPlugin(
_ apiPlugin: APICategoryPlugin,
authModeStrategy: AuthModeStrategyType
) -> Bool {
let modelsRequireAuthPlugin = ModelRegistry.modelSchemas.contains { schema in
guard schema.isSyncable else {
return false
Expand All @@ -97,9 +99,11 @@ extension StorageEngine {
return modelsRequireAuthPlugin
}

static func requiresAuthPlugin(_ apiPlugin: APICategoryPlugin,
authRules: [AuthRule],
authModeStrategy: AuthModeStrategyType) -> Bool {
static func requiresAuthPlugin(
_ apiPlugin: APICategoryPlugin,
authRules: [AuthRule],
authModeStrategy: AuthModeStrategyType
) -> Bool {
switch authModeStrategy {
case .default:
if authRules.isEmpty {
Expand Down

0 comments on commit 5b5340e

Please sign in to comment.