Skip to content

Commit aeb515f

Browse files
committed
chore: simplify serialization
1 parent a9f2884 commit aeb515f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Core/Core/Features/Notebook/Model/CDHNotebookNote.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ public final class CDHNotebookNote: NSManagedObject {
4343
}
4444

4545
public static func serializeLabels(from strings: [String]?) -> String? {
46-
guard let strings else {
47-
return nil
48-
}
49-
return strings.sorted().joined(separator: ";")
46+
strings?.sorted().joined(separator: ";")
5047
}
5148
}

0 commit comments

Comments
 (0)