Skip to content

Implement read only flag in Mempool #1753

Implement read only flag in Mempool

Implement read only flag in Mempool #1753

GitHub Actions / golangci failed Oct 3, 2023 in 1s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (2)

pkg/protocol/engine/ledger/tests/state_resolver.go|47 col 3| type assertion must be checked (forcetypeassert)
pkg/protocol/engine/ledger/tests/state_resolver.go|57 col 3| return with no blank line before (nlreturn)

Filtered Findings (0)

Annotations

Check failure on line 47 in pkg/protocol/engine/ledger/tests/state_resolver.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] pkg/protocol/engine/ledger/tests/state_resolver.go#L47

type assertion must be checked (forcetypeassert)
Raw output
pkg/protocol/engine/ledger/tests/state_resolver.go:47:3: type assertion must be checked (forcetypeassert)
		output := &iotago.Commitment{
		^

Check failure on line 57 in pkg/protocol/engine/ledger/tests/state_resolver.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] pkg/protocol/engine/ledger/tests/state_resolver.go#L57

return with no blank line before (nlreturn)
Raw output
pkg/protocol/engine/ledger/tests/state_resolver.go:57:3: return with no blank line before (nlreturn)
		return promise.New[mempool.State]().Resolve(output)
		^