Skip to content

Commit c8d0f85

Browse files
committed
Add assertion
1 parent 47dd9e0 commit c8d0f85

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/CoreModel/EntityName.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public struct EntityName: RawRepresentable, Codable, Equatable, Hashable, Sendab
1212
public let rawValue: String
1313

1414
public init(rawValue: String) {
15+
assert(rawValue.isEmpty == false)
1516
self.rawValue = rawValue
1617
}
1718
}

0 commit comments

Comments
 (0)