Skip to content

Commit

Permalink
refactor: convert localStorageRepository to a local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Dec 13, 2023
1 parent 854e587 commit 7dd0331
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ public class ParselyTracker {
@NonNull
private final HeartbeatIntervalCalculator intervalCalculator;
@NonNull
private final LocalStorageRepository localStorageRepository;
@NonNull
private final InMemoryBuffer inMemoryBuffer;
@NonNull
private final FlushQueue flushQueue;
Expand All @@ -73,7 +71,7 @@ protected ParselyTracker(String siteId, int flushInterval, Context c) {
new AdvertisementIdProvider(context, ParselyCoroutineScopeKt.getSdkScope()),
new AndroidIdProvider(context)
), siteId);
localStorageRepository = new LocalStorageRepository(context);
LocalStorageRepository localStorageRepository = new LocalStorageRepository(context);
flushManager = new ParselyFlushManager(new Function0<Unit>() {
@Override
public Unit invoke() {
Expand Down

0 comments on commit 7dd0331

Please sign in to comment.