Skip to content

Commit 2be9730

Browse files
cuvafacebook-github-bot
authored andcommitted
Remove unnecessary return statement for single liners
Summary: Ditto Reviewed By: Andrey-Mishanin Differential Revision: D27008683 fbshipit-source-id: af21c267d1117c01e8a1bda94907923d31ca0b55
1 parent 4eca724 commit 2be9730

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CKSwift/State.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public struct State<Value> : TreeNodeLinkable {
4545

4646
extension State : Equatable where Value : Equatable {
4747
static public func ==(lhs: State, rhs: State) -> Bool {
48-
return lhs.wrappedValue == rhs.wrappedValue
48+
lhs.wrappedValue == rhs.wrappedValue
4949
}
5050
}

CKSwift/ViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public struct ViewModel<Value: AnyObject> : TreeNodeLinkable {
4646

4747
extension ViewModel : Equatable {
4848
static public func ==(lhs: ViewModel, rhs: ViewModel) -> Bool {
49-
return lhs.wrappedValue === rhs.wrappedValue
49+
lhs.wrappedValue === rhs.wrappedValue
5050
}
5151
}

0 commit comments

Comments
 (0)