mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Enable gocritic and don't ignore globally (#3159)
Use `nolint` directives instead. From #2960
This commit is contained in:
@@ -27,8 +27,7 @@ import (
|
||||
|
||||
func GetPipelineStatusContext(repo *model.Repo, pipeline *model.Pipeline, workflow *model.Workflow) string {
|
||||
event := string(pipeline.Event)
|
||||
switch pipeline.Event {
|
||||
case model.EventPull:
|
||||
if pipeline.Event == model.EventPull {
|
||||
event = "pr"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user