Fix org import lint issues
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
24a0751ee005cfbdf79e07d7c5813b6e752e353c- Parents
-
cf62ed2 - Tree
c06efc6
24a0751
24a0751ee005cfbdf79e07d7c5813b6e752e353ccf62ed2
c06efc6| Status | File | + | - |
|---|---|---|---|
| M |
internal/repos/source_remote.go
|
4 | 2 |
| M |
internal/web/handlers/repo/source_remote.go
|
0 | 4 |
internal/repos/source_remote.gomodified@@ -21,8 +21,10 @@ import ( | ||
| 21 | 21 | "github.com/tenseleyFlow/shithub/internal/worker" |
| 22 | 22 | ) |
| 23 | 23 | |
| 24 | -const MaxSourceRemoteURLLen = 2048 | |
| 25 | -const SourceRemoteFetchTimeout = 45 * time.Second | |
| 24 | +const ( | |
| 25 | + MaxSourceRemoteURLLen = 2048 | |
| 26 | + SourceRemoteFetchTimeout = 45 * time.Second | |
| 27 | +) | |
| 26 | 28 | |
| 27 | 29 | var ErrInvalidSourceRemote = errors.New("repos: invalid source remote URL") |
| 28 | 30 | |
internal/web/handlers/repo/source_remote.gomodified@@ -18,10 +18,6 @@ func (h *Handlers) fetchRepoSourceRemote(ctx context.Context, row reposdb.Repo, | ||
| 18 | 18 | return repos.FetchSourceRemote(ctx, h.sourceRemoteDeps(""), row, ownerSlug, remoteURL) |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | -func (h *Handlers) refreshFetchedRepoState(ctx context.Context, row reposdb.Repo, gitDir string) error { | |
| 22 | - return repos.RefreshFetchedRepoState(ctx, h.sourceRemoteDeps(""), row, gitDir) | |
| 23 | -} | |
| 24 | - | |
| 25 | 21 | func chooseFetchedDefaultBranch(current string, branches []repogit.RefEntry) (name, oid string) { |
| 26 | 22 | return repos.ChooseFetchedDefaultBranch(current, branches) |
| 27 | 23 | } |