mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-01 00:50:58 -04:00
Update mvdan.cc/gofumpt to v0.1.0 (#1637)
This commit is contained in:
parent
a65f15f448
commit
e5a395b2c8
6 changed files with 13 additions and 13 deletions
test
|
@ -215,7 +215,8 @@ func extractRunContextFromComments(t *testing.T, sourcePath string) *runContext
|
|||
if !strings.HasPrefix(line, "//") {
|
||||
return rc
|
||||
}
|
||||
line = strings.TrimPrefix(line, "//")
|
||||
|
||||
line = strings.TrimLeft(strings.TrimPrefix(line, "//"), " ")
|
||||
if strings.HasPrefix(line, "args: ") {
|
||||
assert.Nil(t, rc.args)
|
||||
args := strings.TrimPrefix(line, "args: ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue