Skip to content

Commit 41fae70

Browse files
committed
Always add Data
1 parent e88fa03 commit 41fae70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/DataObject/DataObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public class DataObject: FuableClass {
6666
private init(data: Data) {
6767
defer {
6868
variables[ObjectVariable.json] = String(data: data, encoding: .utf8)
69+
add(value: data)
6970
}
7071
if let json = try? JSONSerialization.jsonObject(with: data,
7172
options: .allowFragments) as? [Any] {
@@ -77,7 +78,6 @@ public class DataObject: FuableClass {
7778
return
7879
}
7980
consume(DataObject(json))
80-
add(value: data)
8181
}
8282
}
8383

0 commit comments

Comments
 (0)