Browse Source

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

fixed no used warning
Pierre-Marc Airoldi 2 years ago
parent
commit
e392e19f4d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Charts/Data/Implementations/Standard/ChartDataSet.swift

+ 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