Skip to content

Commit 095ad46

Browse files
committed
Fix SwiftFormat violations
1 parent 375e4dc commit 095ad46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Document/Json/JSONArray.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ public class JSONArray: CustomDebugStringConvertible {
136136
return toJSONElement(from: value)
137137
}
138138

139-
@discardableResult
140139
/// - Returns: The number of elements.
140+
@discardableResult
141141
public func append(_ value: Any) -> Int {
142142
self.push(value)
143143
}
@@ -162,8 +162,8 @@ public class JSONArray: CustomDebugStringConvertible {
162162
}
163163
}
164164

165-
@discardableResult
166165
/// - Returns: The number of elements.
166+
@discardableResult
167167
func push(_ value: Any) -> Int {
168168
if let value = value as? JSONObjectable {
169169
let length = self.push(JSONObject())
@@ -204,8 +204,8 @@ public class JSONArray: CustomDebugStringConvertible {
204204
/**
205205
* `pushInternal` pushes the value to the target array.
206206
*/
207-
@discardableResult
208207
/// - Returns: The number of elements.
208+
@discardableResult
209209
private func pushInternal(_ value: Any) -> Int {
210210
let appendedElement = try? self.insertAfterInternal(previousCreatedAt: self.target.getLastCreatedAt(), value: value)
211211
guard appendedElement != nil else {

0 commit comments

Comments
 (0)