From b4ec061cd694f0d88943dbca4c37c69caefdab57 Mon Sep 17 00:00:00 2001 From: Sabrina Tardio Date: Tue, 12 Nov 2024 15:33:43 +0100 Subject: [PATCH] fix linting --- .../PrivacyConfig/ExperimentsDataStore.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/BrowserServicesKit/PrivacyConfig/ExperimentsDataStore.swift b/Sources/BrowserServicesKit/PrivacyConfig/ExperimentsDataStore.swift index 75c3b1d14..bdf82819a 100644 --- a/Sources/BrowserServicesKit/PrivacyConfig/ExperimentsDataStore.swift +++ b/Sources/BrowserServicesKit/PrivacyConfig/ExperimentsDataStore.swift @@ -35,13 +35,13 @@ struct ExperimentsDataStore: ExperimentsDataStoring { private let localDataStoring: LocalDataStoring private let decoder = JSONDecoder() private let encoder = JSONEncoder() - + init(localDataStoring: LocalDataStoring = UserDefaults.standard) { self.localDataStoring = localDataStoring encoder.dateEncodingStrategy = .secondsSince1970 decoder.dateDecodingStrategy = .secondsSince1970 } - + var experiments: Experiments? { get { guard let savedData = localDataStoring.data(forKey: Constants.experimentsDataKey) else { return nil }