Skip to content

Commit

Permalink
chore: var naming
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Aug 7, 2024
1 parent 5a81412 commit b565089
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/elm/Pages/Org_/Repo_/Build_.elm
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ update shared route msg model =

-- hash will change when no line is selected and the selected group changes
-- this means expansion msg will double up on fetching logs unless instructed not to
willHashChange =
willFocusChange =
case ( model.focus.group, model.focus.a, model.focus.b ) of
( Just g, Nothing, _ ) ->
g /= options.step.number
Expand All @@ -504,7 +504,7 @@ update shared route msg model =
-- triggered by a click that will change the hash
-- the focus changes and the logs are not loaded
fetchLogs =
not (options.triggeredFromClick && willHashChange)
not (options.triggeredFromClick && willFocusChange)
&& ((didFocusChange && not isLogLoaded) || not isFromHashChanged)

getLogEffect =
Expand Down
4 changes: 2 additions & 2 deletions src/elm/Pages/Org_/Repo_/Build_/Services.elm
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ update shared route msg model =

-- hash will change when no line is selected and the selected group changes
-- this means the expansion msg will double up on fetching logs unless instructed not to
willHashChange =
willFocusChange =
case ( model.focus.group, model.focus.a, model.focus.b ) of
( Just g, Nothing, _ ) ->
g /= options.service.number
Expand All @@ -495,7 +495,7 @@ update shared route msg model =
-- triggered by a click that will change the hash
-- the focus changes and the logs are not loaded
fetchLogs =
not (options.triggeredFromClick && willHashChange)
not (options.triggeredFromClick && willFocusChange)
&& ((didFocusChange && not isLogLoaded) || not isFromHashChanged)

getLogEffect =
Expand Down

0 comments on commit b565089

Please sign in to comment.