Skip to content

Commit

Permalink
Replace #file with #fileID
Browse files Browse the repository at this point in the history
Because I don't like that my path prefix appears in the crash logs.
Plus the full path makes binaries less reproducible
  • Loading branch information
nikitabobko committed Dec 9, 2024
1 parent 5cf6e46 commit c61d93b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/Common/util/ResultEx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public extension Result {
@discardableResult
func getOrThrow(
_ msgPrefix: String = "",
file: String = #file,
file: String = #fileID,
line: Int = #line,
column: Int = #column,
function: String = #function
Expand Down
8 changes: 4 additions & 4 deletions Sources/Common/util/commonUtil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public var refreshSessionEventForDebug: RefreshSessionEvent? = nil

public func errorT<T>(
_ __message: String = "",
file: String = #file,
file: String = #fileID,
line: Int = #line,
column: Int = #column,
function: String = #function
Expand Down Expand Up @@ -72,7 +72,7 @@ public func getStringStacktrace() -> String { Thread.callStackSymbols.joined(sep

@inlinable public func error(
_ message: String = "",
file: String = #file,
file: String = #fileID,
line: Int = #line,
column: Int = #column,
function: String = #function
Expand All @@ -83,7 +83,7 @@ public func getStringStacktrace() -> String { Thread.callStackSymbols.joined(sep
public func check(
_ condition: Bool,
_ message: @autoclosure () -> String = "",
file: String = #file,
file: String = #fileID,
line: Int = #line,
column: Int = #column,
function: String = #function
Expand All @@ -94,7 +94,7 @@ public func check(
}

@inlinable public func tryCatch<T>(
file: String = #file,
file: String = #fileID,
line: Int = #line,
column: Int = #column,
function: String = #function,
Expand Down

0 comments on commit c61d93b

Please sign in to comment.