Browse Source

Use interpolation instead of '+' concatenation for problematic expression (#4123)

Frederick Kellison-Linn 5 years ago
parent
commit
56effcf413
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Charts/Data/Implementations/ChartBaseDataSet.swift

+ 1 - 1
Source/Charts/Data/Implementations/ChartBaseDataSet.swift

@@ -403,7 +403,7 @@ open class ChartBaseDataSet: NSObject, IChartDataSet, NSCopying
     open override var debugDescription: String
     open override var debugDescription: String
     {
     {
         return (0..<entryCount).reduce(description + ":") {
         return (0..<entryCount).reduce(description + ":") {
-            $0 + "\n" + (self.entryForIndex($1)?.description ?? "")
+            "\($0)\n\(self.entryForIndex($1)?.description ?? "")"
         }
         }
     }
     }