Fix SwiftLint violations (#290)
This commit is contained in:
parent
16556d47f3
commit
3824257669
|
@ -10,14 +10,14 @@ import Foundation
|
|||
|
||||
#if os(iOS) || os(macOS) || os(watchOS) || os(tvOS)
|
||||
import Darwin
|
||||
fileprivate let cpow: (_: Double, _: Double) -> Double = Darwin.pow
|
||||
private let cpow: (_: Double, _: Double) -> Double = Darwin.pow
|
||||
#elseif os(Windows)
|
||||
import ucrt
|
||||
fileprivate let cpow: (_: Double, _: Double) -> Double = ucrt.pow
|
||||
private let cpow: (_: Double, _: Double) -> Double = ucrt.pow
|
||||
#else
|
||||
import CoreFoundation
|
||||
import Glibc
|
||||
fileprivate let cpow: (_: Double, _: Double) -> Double = Glibc.pow
|
||||
private let cpow: (_: Double, _: Double) -> Double = Glibc.pow
|
||||
#endif
|
||||
|
||||
public extension Node {
|
||||
|
|
|
@ -398,9 +398,9 @@ class EncoderTests: XCTestCase { // swiftlint:disable:this type_body_length
|
|||
}
|
||||
|
||||
private func _testDecodeShouldFail<T>(of type: T.Type,
|
||||
from string: String,
|
||||
file: StaticString = #file,
|
||||
line: UInt = #line) where T: Codable {
|
||||
from string: String,
|
||||
file: StaticString = #file,
|
||||
line: UInt = #line) where T: Codable {
|
||||
do {
|
||||
let decoder = YAMLDecoder()
|
||||
_ = try decoder.decode(T.self, from: string)
|
||||
|
|
Loading…
Reference in New Issue