Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta committed Jan 15, 2024
1 parent 2960dc1 commit 371faad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
4 changes: 1 addition & 3 deletions pkg/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,7 @@ func (m *Machine) processStateCtxBindings() {
m.activeStatesLock.Lock()
var toCancel []context.CancelFunc
for _, s := range deactivated {
for _, cancel := range m.indexStateCtx[s] {
toCancel = append(toCancel, cancel)
}
toCancel = append(toCancel, m.indexStateCtx[s]...)
delete(m.indexStateCtx, s)
}
m.activeStatesLock.Unlock()
Expand Down
18 changes: 0 additions & 18 deletions pkg/machine/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,24 +308,6 @@ func (eh *ExceptionHandler) ExceptionState(e *Event) {

// utils

func isMapTrue(m map[string]bool) bool {
for _, value := range m {
if !value {
return false
}
}
return true
}

func isMapFalse(setMap map[string]bool) bool {
for _, value := range setMap {
if value {
return false
}
}
return true
}

// j joins state names
func j(states []string) string {
return strings.Join(states, " ")
Expand Down

0 comments on commit 371faad

Please sign in to comment.