refactor code

Signed-off-by: unknown <Norbie@NorbieNetbook.(none)>
Merge branch 'master' of https://github.com/joestrong/dress-weather
better conditionals

Signed-off-by: unknown <Norbie@NorbieNetbook.(none)>