Skip to content

Commit c686446

Browse files
authored
Relocate missing golangci-lint config (#254)
* Move golangci lint config Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Fix linter nits Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> --------- Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
1 parent 3826559 commit c686446

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
File renamed without changes.

pkg/sourcetool/implementation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"encoding/json"
1010
"errors"
1111
"fmt"
12+
"net/http"
1213
"strings"
1314
"time"
1415

@@ -309,7 +310,7 @@ func (impl *defaultToolImplementation) CreateRepositoryFork(
309310
)
310311

311312
// GitHub will return 202 for larger repos that are cloned async
312-
if err != nil && resp.StatusCode != 202 {
313+
if err != nil && resp.StatusCode != http.StatusAccepted {
313314
return fmt.Errorf("creating repository fork: %w", err)
314315
}
315316

0 commit comments

Comments
 (0)