Skip to content

IWF-129: Enable executingStateIds SAs for states with waitUntil #87

IWF-129: Enable executingStateIds SAs for states with waitUntil

IWF-129: Enable executingStateIds SAs for states with waitUntil #87

GitHub Actions / golangci failed Oct 16, 2024 in 0s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (1)

service/interpreter/stateExecutionCounter.go|118 col 2| S1008: should use 'return e.stateIdCurrentlyExecutingCounts[s.StateId] == 1' instead of 'if e.stateIdCurrentlyExecutingCounts[s.StateId] == 1 { return true }; return false' (gosimple)

Filtered Findings (0)

Annotations

Check failure on line 118 in service/interpreter/stateExecutionCounter.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] service/interpreter/stateExecutionCounter.go#L118

S1008: should use 'return e.stateIdCurrentlyExecutingCounts[s.StateId] == 1' instead of 'if e.stateIdCurrentlyExecutingCounts[s.StateId] == 1 { return true }; return false' (gosimple)
Raw output
service/interpreter/stateExecutionCounter.go:118:2: S1008: should use 'return e.stateIdCurrentlyExecutingCounts[s.StateId] == 1' instead of 'if e.stateIdCurrentlyExecutingCounts[s.StateId] == 1 { return true }; return false' (gosimple)
	if e.stateIdCurrentlyExecutingCounts[s.StateId] == 1 {
	^