Skip to content

Commit

Permalink
remove Optional string for POST debug data
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin committed Jul 8, 2023
1 parent f2593bf commit 2bfea0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/ImproveAI/RewardTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ extension RewardTracker {
}

#if DEBUG && IMPROVE_AI_DEBUG
Logger.log("POSTing \(String(data: postData, encoding: .utf8))")
if let postDataString = String(data: postData, encoding: .utf8) {
Logger.log("POSTing \(postDataString)")
}
#endif

var request = URLRequest(url: self.trackUrl)
Expand Down

0 comments on commit 2bfea0e

Please sign in to comment.