Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Oct 16, 2019
1 parent 745e787 commit 61a2d0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions Package.swift
Expand Up @@ -4,6 +4,7 @@ import PackageDescription

let package = Package(
name: "ThirdPartyMailer",
platforms: [.iOS(.v8)],
products: [
.library(name: "ThirdPartyMailer", targets: ["ThirdPartyMailer"]),
],
Expand Down
8 changes: 3 additions & 5 deletions Sources/ThirdPartyMailer/ThirdPartyMailClient.swift
Expand Up @@ -39,14 +39,12 @@ public struct ThirdPartyMailClient {
let URLRecipientKey: String?

/**
The URL query items key for the subject, or `nil` if this client doesn’t
support setting the subject.
The URL query items key for the subject, or `nil` if this client doesn’t support setting the subject.
*/
let URLSubjectKey: String?

/**
The URL query items key for the message body, or `nil` if this client
doesn’t support setting the message body.
The URL query items key for the message body, or `nil` if this client doesn’t support setting the message body.
*/
let URLBodyKey: String?

Expand Down Expand Up @@ -91,7 +89,7 @@ public struct ThirdPartyMailClient {
- Parameters subject: The subject for the email message (optional).
- Parameters body: The body for the email message (optional).
- Returns: A `NSURL` opening the mail client for the given parameters.
- Returns: A `URL` opening the mail client for the given parameters.
*/
public func composeURL(_ recipient: String?, subject: String?, body: String?) -> URL {
var components = URLComponents(string: "\(URLScheme):\(URLRoot ?? "")")
Expand Down

0 comments on commit 61a2d0d

Please sign in to comment.