HardjunoIndracahya / aqi-calculator

Unnecessary else / elif used after return PYL-R1705
Style
Major
a year agoa year old
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
19        if item <= c <= c_high[i]:
20            aqi = ((i_high[i] - i_low[i]) / (c_high[i] - item)) * (c - item) + i_low[i]
21            return round(aqi, 1)
22    if c > c_high[-1]:23        aqi = ((i_high[-1] - i_low[-1]) / (c_high[-1] - c_low[-1])) * (c - c_low[-1]) + i_low[-1]
24        return round(aqi, 1)
25    else: