Commit 095ad46 1 parent 375e4dc commit 095ad46 Copy full SHA for 095ad46
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ public class JSONArray: CustomDebugStringConvertible {
136
136
return toJSONElement ( from: value)
137
137
}
138
138
139
- @discardableResult
140
139
/// - Returns: The number of elements.
140
+ @discardableResult
141
141
public func append( _ value: Any ) -> Int {
142
142
self . push ( value)
143
143
}
@@ -162,8 +162,8 @@ public class JSONArray: CustomDebugStringConvertible {
162
162
}
163
163
}
164
164
165
- @discardableResult
166
165
/// - Returns: The number of elements.
166
+ @discardableResult
167
167
func push( _ value: Any ) -> Int {
168
168
if let value = value as? JSONObjectable {
169
169
let length = self . push ( JSONObject ( ) )
@@ -204,8 +204,8 @@ public class JSONArray: CustomDebugStringConvertible {
204
204
/**
205
205
* `pushInternal` pushes the value to the target array.
206
206
*/
207
- @discardableResult
208
207
/// - Returns: The number of elements.
208
+ @discardableResult
209
209
private func pushInternal( _ value: Any ) -> Int {
210
210
let appendedElement = try ? self . insertAfterInternal ( previousCreatedAt: self . target. getLastCreatedAt ( ) , value: value)
211
211
guard appendedElement != nil else {
You can’t perform that action at this time.
0 commit comments