Skip to content

Commit

Permalink
Fix SwiftLint violations (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim authored Nov 11, 2020
1 parent 16556d4 commit 3824257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Sources/Yams/Representer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions Tests/YamsTests/EncoderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3824257

Please sign in to comment.