tenseleyflow/shithub / 24a0751

Browse files

Fix org import lint issues

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
24a0751ee005cfbdf79e07d7c5813b6e752e353c
Parents
cf62ed2
Tree
c06efc6

2 changed files

StatusFile+-
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 (
2121
 	"github.com/tenseleyFlow/shithub/internal/worker"
2222
 )
2323
 
24
-const MaxSourceRemoteURLLen = 2048
25
-const SourceRemoteFetchTimeout = 45 * time.Second
24
+const (
25
+	MaxSourceRemoteURLLen    = 2048
26
+	SourceRemoteFetchTimeout = 45 * time.Second
27
+)
2628
 
2729
 var ErrInvalidSourceRemote = errors.New("repos: invalid source remote URL")
2830
 
internal/web/handlers/repo/source_remote.gomodified
@@ -18,10 +18,6 @@ func (h *Handlers) fetchRepoSourceRemote(ctx context.Context, row reposdb.Repo,
1818
 	return repos.FetchSourceRemote(ctx, h.sourceRemoteDeps(""), row, ownerSlug, remoteURL)
1919
 }
2020
 
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
-
2521
 func chooseFetchedDefaultBranch(current string, branches []repogit.RefEntry) (name, oid string) {
2622
 	return repos.ChooseFetchedDefaultBranch(current, branches)
2723
 }