Skip to content

Commit 3872c2f

Browse files
committed
air_quality code formatting
1 parent 22f9f51 commit 3872c2f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

packages/air_quality/lib/air_quality.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,21 @@ enum AirQualityLevel {
3131
}
3232

3333
AirQualityLevel airQualityIndexToLevel(int index) {
34-
if (index < 0)
34+
if (index < 0) {
3535
return AirQualityLevel.UNKNOWN;
36-
else if (index <= 50)
36+
} else if (index <= 50) {
3737
return AirQualityLevel.GOOD;
38-
else if (index <= 100)
38+
} else if (index <= 100) {
3939
return AirQualityLevel.MODERATE;
40-
else if (index <= 150)
40+
} else if (index <= 150) {
4141
return AirQualityLevel.UNHEALTHY_FOR_SENSITIVE_GROUPS;
42-
else if (index <= 200)
42+
} else if (index <= 200) {
4343
return AirQualityLevel.UNHEALTHY;
44-
else if (index <= 300)
44+
} else if (index <= 300) {
4545
return AirQualityLevel.VERY_UNHEALTHY;
46-
else
46+
} else {
4747
return AirQualityLevel.HAZARDOUS;
48+
}
4849
}
4950

5051
/// A class for storing Air Quality JSON Data fetched from the API.

0 commit comments

Comments
 (0)