Browse Source

Fix isEmpty check

Chris Vanderschuere 7 years ago
parent
commit
e4914ebd4f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/protoc-gen-swiftgrpc/options.swift

+ 1 - 1
Sources/protoc-gen-swiftgrpc/options.swift

@@ -85,7 +85,7 @@ class GeneratorOptions {
   }
 
   static func parseParameter(string: String?) -> [(key: String, value: String)] {
-    guard let string = string, string.isEmpty else {
+    guard let string = string, !string.isEmpty else {
       return []
     }
     let parts = string.components(separatedBy: ",")