Skip to content

Commit

Permalink
suppress swift warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcleinman authored and badboy committed Jul 17, 2023
1 parent eec7c29 commit 49c2591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glean-core/ios/Glean/Glean.swift
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public class Glean {
///
/// - parameters:
/// * value: The value of the tag, which must be a valid HTTP header value.
public func setDebugViewTag(_ tag: String) -> Bool {
@discardableResult public func setDebugViewTag(_ tag: String) -> Bool {
return gleanSetDebugViewTag(tag)
}

Expand Down
2 changes: 1 addition & 1 deletion glean-core/ios/Glean/Metrics/UuidMetric.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class UuidMetricType {
/// Generate a new UUID and set it in the metric store.
///
/// - returns: The `UUID` that was generated or `nil` if disabled.
public func generateAndSet() -> UUID {
@discardableResult public func generateAndSet() -> UUID {
let uuid = inner.generateAndSet()
return UUID(uuidString: uuid)!
}
Expand Down

0 comments on commit 49c2591

Please sign in to comment.