Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 78d3082

Browse files
committed
Update StatsServiceRemoteV2.swift
1 parent 7980bb3 commit 78d3082

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/WordPressKit/Services/StatsServiceRemoteV2.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,8 @@ public extension StatsServiceRemoteV2 {
327327
let path = self.path(forEndpoint: "sites/\(siteID)/\(pathComponent)/", withVersion: ._1_1)
328328
let properties = StatsEmailsSummaryData.queryProperties(quantity: quantity, sortField: sortField, sortOrder: sortOrder) as [String: AnyObject]
329329

330-
wordPressComRESTAPI.get(path, parameters: properties, success: { [weak self] (response, _) in
331-
guard let self,
332-
let jsonResponse = response as? [String: AnyObject],
330+
wordPressComRESTAPI.get(path, parameters: properties, success: { (response, _) in
331+
guard let jsonResponse = response as? [String: AnyObject],
333332
let emailsSummaryData = StatsEmailsSummaryData(jsonDictionary: jsonResponse)
334333
else {
335334
completion(.failure(ResponseError.decodingFailure))

0 commit comments

Comments
 (0)