File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Leanplum-SDK/Classes/Managers Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 22// AppIconManagerTest.m
33// Leanplum-SDK
44//
5- // Created by Alexis Oyama on 3/2/17 .
5+ // Created by Grace Gu on 9/11/18 .
66// Copyright © 2017 Leanplum. All rights reserved.
77//
88// Licensed to the Apache Software Foundation (ASF) under one
Original file line number Diff line number Diff line change @@ -55,14 +55,7 @@ - (instancetype)init {
5555}
5656
5757- (void )incrementCount : (nonnull NSString *)name {
58- if ([self .enabledCounters containsObject: name]) {
59- int count = 0 ;
60- if ([self .counts objectForKey: name]) {
61- count = [self .counts[name] intValue ];
62- }
63- count = count + 1 ;
64- self.counts [name] = [NSNumber numberWithInt: count];
65- }
58+ [self incrementCount: name by: 1 ];
6659}
6760
6861- (void )incrementCount : (nonnull NSString *)name by : (int )incrementCount {
You can’t perform that action at this time.
0 commit comments