From 8e327cf073ba3b8bf2d1b88f9ad2158b67567063 Mon Sep 17 00:00:00 2001 From: David Jennes Date: Wed, 27 May 2020 02:02:43 +0200 Subject: [PATCH] Apply suggestions from code review Commit suggestions Co-authored-by: Ilya Puchka --- Sources/TrimBehavior.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sources/TrimBehavior.swift b/Sources/TrimBehavior.swift index 5af5169c..45f350b8 100644 --- a/Sources/TrimBehavior.swift +++ b/Sources/TrimBehavior.swift @@ -41,7 +41,6 @@ public struct TrimBehavior: Equatable { static func leadingRegex(trim: Trim) -> NSRegularExpression { switch trim { - case .none: fatalError("No RegularExpression for none") case .whitespace: @@ -55,7 +54,6 @@ public struct TrimBehavior: Equatable { static func trailingRegex(trim: Trim) -> NSRegularExpression { switch trim { - case .none: fatalError("No RegularExpression for none") case .whitespace: @@ -82,5 +80,3 @@ public struct TrimBehavior: Equatable { } } - -