Inconsistent use of baseUrl and apiUrl arguments (#1008)

* Inconsistent use of baseUrl and apiUrl arguments

Both are Strings, so flipping the order between
one invocation and another didn't raise any
argument from the compiler. The baseUrl argument
is actually unnecessary, and has been removed.

* Update bindata.go
This commit is contained in:
stuart nelson 2017-09-29 14:16:03 +02:00 committed by GitHub
parent 4931c9206e
commit a7981e4693
3 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ update msg ({ basePath, apiUrl } as model) =
NavigateToSilenceView silenceId ->
let
( silenceView, cmd ) =
Views.SilenceView.Updates.update (InitSilenceView silenceId) model.silenceView apiUrl basePath
Views.SilenceView.Updates.update (InitSilenceView silenceId) model.silenceView apiUrl
in
( { model | route = SilenceViewRoute silenceId, silenceView = silenceView }
, Cmd.map MsgForSilenceView cmd
@ -116,7 +116,7 @@ update msg ({ basePath, apiUrl } as model) =
MsgForSilenceView msg ->
let
( silenceView, cmd ) =
Views.SilenceView.Updates.update msg model.silenceView basePath apiUrl
Views.SilenceView.Updates.update msg model.silenceView apiUrl
in
( { model | silenceView = silenceView }, Cmd.map MsgForSilenceView cmd )

View File

@ -9,8 +9,8 @@ import Utils.Types exposing (ApiData(..))
import Views.SilenceView.Types exposing (Model, SilenceViewMsg(..))
update : SilenceViewMsg -> Model -> String -> String -> ( Model, Cmd SilenceViewMsg )
update msg model apiUrl basePath =
update : SilenceViewMsg -> Model -> String -> ( Model, Cmd SilenceViewMsg )
update msg model apiUrl =
case msg of
FetchSilence id ->
( model, getSilence apiUrl id SilenceFetched )

File diff suppressed because one or more lines are too long