Perfect-Notifications icon indicating copy to clipboard operation
Perfect-Notifications copied to clipboard

Parameter production is unused

Open enolik97 opened this issue 6 years ago • 0 comments

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

enolik97 avatar Feb 04 '19 17:02 enolik97