soumya92/barista

View on GitHub
modules/weather/openweathermap/openweathermap.go

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

Function getCondition has 5 return statements (exceeds 4 allowed).
Open

func getCondition(owmCondition int) weather.Condition {
    switch owmCondition {
    case 611, 612:
        return weather.Sleet
    case 701:
Severity: Major
Found in modules/weather/openweathermap/openweathermap.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status