Skip to content

Commit

Permalink
Code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhvorost committed Jan 16, 2024
1 parent 8b69b1a commit 31e4f98
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Sources/DLog/TraceStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,10 @@ func stackMetadata(moduleName: String, stackAddresses: ArraySlice<NSNumber>, con
}

let module = $0.element.module
let result = module == moduleName
#if DEBUG
// Fix: swift test
if result == false {
return module.replacingOccurrences(of: "Package", with: "") == moduleName
}
#endif
return result

return module == moduleName
? true
: module.replacingOccurrences(of: "Package", with: "") == moduleName // Fix: swift test
}
.map { item in
let items: [(StackOptions, String, () -> Any)] = [
Expand Down

0 comments on commit 31e4f98

Please sign in to comment.