mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-27 08:32:15 +00:00
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:
parent
4931c9206e
commit
a7981e4693
@ -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 )
|
||||
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user