Fix SwiftLint violations (#290)

This commit is contained in:
JP Simard 2020-11-11 11:27:27 -05:00 committed by GitHub
parent 16556d47f3
commit 3824257669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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 {

View File

@ -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)