Full generation, file type cleanup
This commit is contained in:
11
CHDataManagement/Extensions/ConvertThrowing.swift
Normal file
11
CHDataManagement/Extensions/ConvertThrowing.swift
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
prefix operator ~>
|
||||
|
||||
prefix func ~> (operation: () throws -> Void) -> Bool {
|
||||
do {
|
||||
try operation()
|
||||
return true
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user