Skip to content

Commit

Permalink
Merge pull request #2 from planetary-social/refactor_optional
Browse files Browse the repository at this point in the history
refactor optional function
  • Loading branch information
martindsq authored Jan 12, 2022
2 parents d702ccd + 073b83e commit 5b669c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Logger/Delivery/Logger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public class Logger {
return service.fileUrls
}

public func optional(_ error: Error?, _ detail: String?) -> Bool {
@discardableResult
public func optional(_ error: Error?, _ detail: String? = nil) -> Bool {
service.optional(error, detail)
}

Expand Down

0 comments on commit 5b669c2

Please sign in to comment.