From 32edb24ce865748f74a5652a2c9cd0b1ef8b587a Mon Sep 17 00:00:00 2001 From: akirahrkw Date: Wed, 17 Jun 2015 01:25:43 +0800 Subject: [PATCH] fix to follow issue #60 rule --- Source/SwiftLintFramework/Location.swift | 2 +- Source/SwiftLintFramework/StyleViolation.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SwiftLintFramework/Location.swift b/Source/SwiftLintFramework/Location.swift index 3640c04bcd..9cb786dce2 100644 --- a/Source/SwiftLintFramework/Location.swift +++ b/Source/SwiftLintFramework/Location.swift @@ -48,7 +48,7 @@ Returns true if `lhs` Location is equal to `rhs` Location. :returns: True if `lhs` Location is equal to `rhs` Location. */ -public func ==(lhs: Location, rhs: Location) -> Bool { +public func == (lhs: Location, rhs: Location) -> Bool { return lhs.file == rhs.file && lhs.line == rhs.line && lhs.character == rhs.character diff --git a/Source/SwiftLintFramework/StyleViolation.swift b/Source/SwiftLintFramework/StyleViolation.swift index 8bb046b325..1fe1dfb082 100644 --- a/Source/SwiftLintFramework/StyleViolation.swift +++ b/Source/SwiftLintFramework/StyleViolation.swift @@ -44,7 +44,7 @@ Returns true if `lhs` StyleViolation is equal to `rhs` StyleViolation. :returns: True if `lhs` StyleViolation is equal to `rhs` StyleViolation. */ -public func ==(lhs: StyleViolation, rhs: StyleViolation) -> Bool { +public func == (lhs: StyleViolation, rhs: StyleViolation) -> Bool { return lhs.type == rhs.type && lhs.location == rhs.location && lhs.severity == rhs.severity &&