Skip to content

Commit

Permalink
Remove EmailAddress typealias (#111)
Browse files Browse the repository at this point in the history
This was only used in one place. I don't think it adds much in this case (since there's no real type safety with typealiases), so probably better to avoid using it.
  • Loading branch information
NickEntin committed Feb 22, 2021
1 parent f8ab8ec commit 378e226
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Sources/Aardvark/Aardvark.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import CoreAardvark
import Foundation

public typealias EmailAddress = String

@objc
public class Aardvark : NSObject {

Expand Down
2 changes: 1 addition & 1 deletion Sources/AardvarkMailUI/Aardvark+EmailBugReporting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extension Aardvark {
/// `emailAddress`. Returns the created bug reporter for convenience.
@objc
public static func addDefaultBugReportingGestureWithEmailBugReporter(
withRecipient emailAddress: EmailAddress
withRecipient emailAddress: String
) -> ARKEmailBugReporter {
let logStore = ARKLogDistributor.default().defaultLogStore
let bugReporter = ARKEmailBugReporter(emailAddress: emailAddress, logStore: logStore)
Expand Down

0 comments on commit 378e226

Please sign in to comment.