minor refactorings

This commit is contained in:
JP Simard
2016-01-02 15:59:16 -08:00
parent 281a4dc587
commit fc3545be1b
2 changed files with 5 additions and 6 deletions
@@ -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