Skip to content

Commit

Permalink
Shortify branch with ternary
Browse files Browse the repository at this point in the history
Co-authored-by: Roland Kákonyi <[email protected]>
  • Loading branch information
123mpozzi and rolandkakonyi authored Nov 22, 2024
1 parent a2d6bb1 commit 10b027f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ios/DebugModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ extension DebugModule {
@objc(setLoggingEnabled:)
func setLoggingEnabled(enabled: Bool) {
bridge.uiManager.addUIBlock { [weak self] _, _ in
let defaultMinimumLevel: LogLevel = .warning
if enabled {
DebugConfig.logging.logger?.level = .verbose
} else {
DebugConfig.logging.logger?.level = defaultMinimumLevel
}
DebugConfig.logging.logger?.level = enabled ? .verbose : .warning
}
}
}

0 comments on commit 10b027f

Please sign in to comment.