Removes return statements that are not needed.
This commit is contained in:
parent
58575331dd
commit
f153643273
|
@ -67,17 +67,14 @@ struct MarkAsReadAlertController {
|
||||||
|
|
||||||
if let barButtonItem = sourceType as? UIBarButtonItem {
|
if let barButtonItem = sourceType as? UIBarButtonItem {
|
||||||
alertController.popoverPresentationController?.barButtonItem = barButtonItem
|
alertController.popoverPresentationController?.barButtonItem = barButtonItem
|
||||||
return alertController
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let rect = sourceType as? CGRect {
|
if let rect = sourceType as? CGRect {
|
||||||
alertController.popoverPresentationController?.sourceRect = rect
|
alertController.popoverPresentationController?.sourceRect = rect
|
||||||
return alertController
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let view = sourceType as? UIView {
|
if let view = sourceType as? UIView {
|
||||||
alertController.popoverPresentationController?.sourceView = view
|
alertController.popoverPresentationController?.sourceView = view
|
||||||
return alertController
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return alertController
|
return alertController
|
||||||
|
|
Loading…
Reference in New Issue