Skip to content

Commit

Permalink
[SwiftLint] Address statement_position violations
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
ikesyo committed Jun 21, 2017
1 parent 9761fc9 commit 1b0231b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Source/CarthageKit/DuplicateDependency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ extension DuplicateDependency: Comparable {

if lhs.locations.count < rhs.locations.count {
return true
}
else if lhs.locations.count > rhs.locations.count {
} else if lhs.locations.count > rhs.locations.count {
return false
}

for (lhsLocation, rhsLocation) in zip(lhs.locations, rhs.locations) {
if lhsLocation < rhsLocation {
return true
}
else if lhsLocation > rhsLocation {
} else if lhsLocation > rhsLocation {
return false
}
}
Expand Down
3 changes: 1 addition & 2 deletions Source/CarthageKit/FrameworkExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@ internal func buildCountedSet<S: Sequence>(_ sequence: S) -> [S.Iterator.Element
var set = set
if let count = set[elem] {
set[elem] = count + 1
}
else {
} else {
set[elem] = 1
}
return set
Expand Down

0 comments on commit 1b0231b

Please sign in to comment.