Ver código fonte

Merge pull request #4841 from eren-celik/fix/warning

fixed no used warning
Pierre-Marc Airoldi 2 anos atrás
pai
commit
e392e19f4d

+ 1 - 1
Source/Charts/Data/Implementations/Standard/ChartDataSet.swift

@@ -313,7 +313,7 @@ open class ChartDataSet: ChartBaseDataSet
     /// - Parameters:
     ///   - e: the entry to add
     /// - Returns: True
-    // TODO: This should return `Void` to follow Swift convention
+    @discardableResult
     open override func addEntryOrdered(_ e: ChartDataEntry) -> Bool
     {
         if let last = last, last.x > e.x