Skip to content

Commit

Permalink
fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
s8ngyu committed Apr 19, 2020
1 parent 918fe87 commit 0c9ea54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpddokdo.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ -(NSDictionary *)weatherData {
if (self.currentTemperature) [data setObject:self.currentTemperature forKey:@"temperature"]; else [data setObject:@"N/A" forKey:@"temperature"];
if (self.currentConditions) [data setObject:self.currentConditions forKey:@"conditions"]; else [data setObject:@"N/A" forKey:@"conditions"];
if (self.currentLocation) [data setObject:self.currentLocation forKey:@"location"]; else [data setObject:@"N/A" forKey:@"location"];
if (self.sunrise) [data setObject:self.sunrise forKey:@"sunrise"];
if (self.sunset) [data setObject:self.sunset forKey:@"sunset"];
if (self.sunrise) [data setObject:self.sunrise forKey:@"sunrise"]; else [data setObject:@"N/A" forKey:@"sunrise"];
if (self.sunset) [data setObject:self.sunset forKey:@"sunset"]; else [data setObject:@"N/A" forKey:@"sunset"];
UIImage *currentConditionsImage = self.currentConditionsImage;
if (currentConditionsImage) {
[data setObject:currentConditionsImage forKey:@"conditionsImage"];
Expand Down

0 comments on commit 0c9ea54

Please sign in to comment.