浏览代码

Fix isEmpty check

Chris Vanderschuere 7 年之前
父节点
当前提交
e4914ebd4f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: ",")