Skip to content

Commit

Permalink
chore: Code refactor (SDKCF-6915)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumenRautray committed May 2, 2024
1 parent b8ab42d commit aa93fd8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Sources/REventLogger/REventLoggerEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ final class REventLoggerEnvironment {
}

var appName: String {
if let bundleDisplayName = bundle.value(for: BundleKeys.bundleDisplayName) {
return bundleDisplayName
} else if let bundleName = bundle.value(for: BundleKeys.displayName) {
return bundleName
} else { return bundle.valueNotFound }
return bundle.value(for: BundleKeys.bundleDisplayName) ?? bundle.value(for: BundleKeys.displayName) ?? bundle.valueNotFound
}

var appVersion: String {
Expand Down

0 comments on commit aa93fd8

Please sign in to comment.