mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
minor refactorings
This commit is contained in:
@@ -115,12 +115,11 @@ public struct Configuration: Equatable {
|
||||
let yamlResult = Yaml.load(yaml)
|
||||
if let yamlConfig = yamlResult.value {
|
||||
return yamlConfig
|
||||
} else {
|
||||
if let error = yamlResult.error {
|
||||
queuedPrint(error)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if let error = yamlResult.error {
|
||||
queuedPrint(error)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
public init(path: String = ".swiftlint.yml", optional: Bool = true, silent: Bool = false) {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// Copyright (c) 2015 Realm. All rights reserved.
|
||||
//
|
||||
|
||||
public struct RuleParameter<T: Equatable> : Equatable {
|
||||
public struct RuleParameter<T: Equatable>: Equatable {
|
||||
public let severity: ViolationSeverity
|
||||
public let value: T
|
||||
|
||||
|
||||
Reference in New Issue
Block a user