Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter production is unused #13

Open
enolik97 opened this issue Feb 4, 2019 · 0 comments
Open

Parameter production is unused #13

enolik97 opened this issue Feb 4, 2019 · 0 comments

Comments

@enolik97
Copy link

enolik97 commented Feb 4, 2019

public static func addConfigurationAPNS(name: String, production: Bool, certificatePath: String) {
addConfigurationIOS(name: name) {
net in
guard File(certificatePath).exists else {
fatalError("File not found (certificatePath)")
}
guard net.useCertificateFile(cert: certificatePath)
&& net.usePrivateKeyFile(cert: certificatePath)
&& net.checkPrivateKey() else {
let code = Int32(net.errorCode())
print("Error validating private key file: (net.errorStr(forCode: code))")
return
}
}
}

The parameter is never used within the function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant