Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamad-rizki committed Apr 19, 2020
1 parent 39d5aa8 commit fb224b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions native/ios/WatermelonDB/DatabaseDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DatabaseDriver {

let database: Database

convenience init(dbName: String, dbPassword: string, schemaVersion: SchemaVersion) throws {
convenience init(dbName: String, dbPasswordString, schemaVersion: SchemaVersion) throws {
self.init(dbName: dbName, dbPassword: dbPassword)

switch isCompatible(withVersion: schemaVersion) {
Expand All @@ -24,7 +24,7 @@ class DatabaseDriver {
}
}

convenience init(dbName: String, dbPassword: string, setUpWithSchema schema: Schema) {
convenience init(dbName: String, dbPasswordString, setUpWithSchema schema: Schema) {
self.init(dbName: dbName, dbPassword: dbPassword)

do {
Expand All @@ -34,12 +34,12 @@ class DatabaseDriver {
}
}

convenience init(dbName: String, dbPassword: string, setUpWithMigrations migrations: MigrationSet) throws {
convenience init(dbName: String, dbPasswordString, setUpWithMigrations migrations: MigrationSet) throws {
self.init(dbName: dbName, dbPassword: dbPassword)
try migrate(with: migrations)
}

private init(dbName: String, dbPassword: string) {
private init(dbName: String, dbPasswordString) {
self.database = Database(path: getPath(dbName: dbName), password: dbPassword)
}

Expand Down

0 comments on commit fb224b2

Please sign in to comment.