less space

This commit is contained in:
Cadey Ratio 2020-11-16 10:13:04 -05:00
parent b12667977c
commit b793cef601
1 changed files with 2 additions and 8 deletions

View File

@ -45,10 +45,7 @@ update msg model =
(Mi.expectJson ValidateFront Mi.Switch.decoder)
, Mi.request
"GET"
(Maybe.withDefault
""
model.token
)
(Maybe.withDefault "" model.token)
(Mi.Switch.listURL 30 model.switchPage)
Http.emptyBody
(Mi.expectJson ValidateSwitches (Json.Decode.list Mi.Switch.decoder))
@ -69,10 +66,7 @@ update msg model =
( model
, Mi.request
"GET"
(Maybe.withDefault
""
model.token
)
(Maybe.withDefault "" model.token)
(Mi.Switch.listURL 30 model.switchPage)
Http.emptyBody
(Mi.expectJson ValidateSwitches (Json.Decode.list Mi.Switch.decoder))