Browse Source

Fix isEmpty check

Chris Vanderschuere 7 năm trước cách đây
mục cha
commit
e4914ebd4f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: ",")