mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-19 23:41:20 +02:00
minor cleanup
This commit is contained in:
@@ -50,13 +50,11 @@ public struct Where: FetchClause, QueryClause, DeleteClause, Hashable {
|
|||||||
*/
|
*/
|
||||||
public static func && (left: Where, right: Where?) -> Where {
|
public static func && (left: Where, right: Where?) -> Where {
|
||||||
|
|
||||||
if right != nil {
|
if let right = right {
|
||||||
return left && right!
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
|
|
||||||
return left
|
return left && right
|
||||||
}
|
}
|
||||||
|
return left
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -67,13 +65,11 @@ public struct Where: FetchClause, QueryClause, DeleteClause, Hashable {
|
|||||||
*/
|
*/
|
||||||
public static func && (left: Where?, right: Where) -> Where {
|
public static func && (left: Where?, right: Where) -> Where {
|
||||||
|
|
||||||
if left != nil {
|
if let left = left {
|
||||||
|
|
||||||
return left && right
|
return left && right
|
||||||
}
|
}
|
||||||
else {
|
return right
|
||||||
|
|
||||||
return right
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -92,13 +88,11 @@ public struct Where: FetchClause, QueryClause, DeleteClause, Hashable {
|
|||||||
*/
|
*/
|
||||||
public static func || (left: Where, right: Where?) -> Where {
|
public static func || (left: Where, right: Where?) -> Where {
|
||||||
|
|
||||||
if right != nil {
|
if let right = right {
|
||||||
return left || right!
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
|
|
||||||
return left
|
return left || right
|
||||||
}
|
}
|
||||||
|
return left
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -109,13 +103,11 @@ public struct Where: FetchClause, QueryClause, DeleteClause, Hashable {
|
|||||||
*/
|
*/
|
||||||
public static func || (left: Where?, right: Where) -> Where {
|
public static func || (left: Where?, right: Where) -> Where {
|
||||||
|
|
||||||
if left != nil {
|
if let left = left {
|
||||||
|
|
||||||
return left || right
|
return left || right
|
||||||
}
|
}
|
||||||
else {
|
return right
|
||||||
|
|
||||||
return right
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user