Skip to content

Commit 624ab59

Browse files
committed
Add assertion
1 parent 319b5b0 commit 624ab59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/CoreModel/PropertyKey.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public struct PropertyKey: RawRepresentable, Codable, Equatable, Hashable, Senda
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)