lint: modernize fix
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -35,7 +35,6 @@ func TestStripCredentials(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tt := range cases {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if g, w := stripCredentials(tt.url), tt.want; g != w {
|
||||
t.Fatalf("got: %q\nwant: %q", g, w)
|
||||
|
||||
@@ -200,7 +200,6 @@ func TestGitRemoteURL(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tt := range cases {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
gittestutil.Mktmp(t)
|
||||
c, err := gitutil.New()
|
||||
|
||||
Reference in New Issue
Block a user