Skip to content

Commit 76a92db

Browse files
committed
lint
1 parent 790530b commit 76a92db

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

Sources/ParseServerSwift/ParseServerConfiguration.swift

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ public struct ParseServerConfiguration {
4646
- parameter tlsConfiguration: Manages configuration of TLS for SwiftNIO programs.
4747
- throws: An error of `ParseError` type.
4848
- important: This initializer looks for environment variables that begin
49-
with **PARSE_SERVER_SWIFT** such as **PARSE_SERVER_SWIFT_APPLICATION_ID**, **PARSE_SERVER_SWIFT_MAINTENANCE_KEY**, and **PARSE_SERVER_SWIFT_PRIMARY_KEY**.
49+
with **PARSE_SERVER_SWIFT** such as **PARSE_SERVER_SWIFT_APPLICATION_ID**,
50+
**PARSE_SERVER_SWIFT_MAINTENANCE_KEY**, and **PARSE_SERVER_SWIFT_PRIMARY_KEY**.
5051
*/
51-
public init(app: Application,
52-
tlsConfiguration: TLSConfiguration? = nil) throws {
52+
public init(
53+
app: Application,
54+
tlsConfiguration: TLSConfiguration? = nil
55+
) throws {
5356
guard let applicationId = Environment.process.PARSE_SERVER_SWIFT_APPLICATION_ID,
5457
let primaryKey = Environment.process.PARSE_SERVER_SWIFT_PRIMARY_KEY else {
5558
throw ParseError(
@@ -93,16 +96,18 @@ public struct ParseServerConfiguration {
9396
needs to be one server.
9497
- throws: An error of `ParseError` type.
9598
*/
96-
public init(app: Application,
97-
hostName: String = "localhost",
98-
port: Int = 8080,
99-
tlsConfiguration: TLSConfiguration? = nil,
100-
maxBodySize: ByteCount = "16kb",
101-
applicationId: String,
102-
maintenanceKey: String? = nil,
103-
primaryKey: String,
104-
webhookKey: String? = nil,
105-
parseServerURLString: String) throws {
99+
public init(
100+
app: Application,
101+
hostName: String = "localhost",
102+
port: Int = 8080,
103+
tlsConfiguration: TLSConfiguration? = nil,
104+
maxBodySize: ByteCount = "16kb",
105+
applicationId: String,
106+
maintenanceKey: String? = nil,
107+
primaryKey: String,
108+
webhookKey: String? = nil,
109+
parseServerURLString: String
110+
) throws {
106111
self.applicationId = applicationId
107112
self.maintenanceKey = maintenanceKey
108113
self.primaryKey = primaryKey

0 commit comments

Comments
 (0)