Skip to content

Commit 4dd7aec

Browse files
committed
Fix Swiftlint issues
1 parent 78f9876 commit 4dd7aec

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

WordPress/Classes/Utility/ContainerContextFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ContainerContextFactory: NSObject, ManagedObjectContextFactory {
2727
completionBlock?()
2828
}
2929
}
30-
if (wait) {
30+
if wait {
3131
context.performAndWait(block)
3232
} else {
3333
context.perform(block)

WordPress/Classes/Utility/ContextManager+ErrorHandling.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ extension ManagedObjectContextFactory {
7171
do {
7272
try context.obtainPermanentIDs(for: inserted)
7373
} catch {
74-
DDLogError("Error obtaining permanent object IDs for \(inserted), \(error)");
74+
DDLogError("Error obtaining permanent object IDs for \(inserted), \(error)")
7575
}
7676

77-
if (context.hasChanges) {
77+
if context.hasChanges {
7878
do {
7979
try context.save()
8080
} catch {

0 commit comments

Comments
 (0)