Skip to content

WIP: refactor: refactor funcs with generics #937

WIP: refactor: refactor funcs with generics

WIP: refactor: refactor funcs with generics #937

GitHub Actions / golangci failed Jan 15, 2025 in 1s

reviewdog [golangci] report

reported by reviewdog 🐶

Findings (3)

generics.go|227 col 9| indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
generics.go|237 col 9| indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
generics.go|247 col 9| indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)

Filtered Findings (0)

Annotations

Check failure on line 227 in generics.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] generics.go#L227

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
Raw output
generics.go:227:9: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
	} else {
		return result.(E), nil
	}

Check failure on line 237 in generics.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] generics.go#L237

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
Raw output
generics.go:237:9: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
	} else {
		return result.(E), nil
	}

Check failure on line 247 in generics.go

See this annotation in the file changed.

@github-actions github-actions / golangci

[golangci] generics.go#L247

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
Raw output
generics.go:247:9: indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
	} else {
		return result.(E), nil
	}