Explorar o código

Fix isEmpty check

Chris Vanderschuere %!s(int64=7) %!d(string=hai) anos
pai
achega
e4914ebd4f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: ",")