Skip to content

Commit

Permalink
Fix line-too-long lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
evankanderson committed Dec 11, 2024
1 parent 6402c6e commit 335c6b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/engine/ingester/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func (gi *Git) ingestRepository(ctx context.Context, repo *pb.Repository, params
}, nil
}

func (gi *Git) ingestPullRequest(ctx context.Context, ent *pbinternal.PullRequest, params map[string]any) (*interfaces.Result, error) {
func (gi *Git) ingestPullRequest(
ctx context.Context, ent *pbinternal.PullRequest, params map[string]any) (*interfaces.Result, error) {
userCfg := &IngesterConfig{}
if err := mapstructure.Decode(params, userCfg); err != nil {
return nil, fmt.Errorf("failed to read git ingester configuration from params: %w", err)
Expand Down Expand Up @@ -138,7 +139,8 @@ func (gi *Git) ingestPullRequest(ctx context.Context, ent *pbinternal.PullReques
}, nil
}

func (gi *Git) fetchClone(ctx context.Context, url, branch string) (billy.Filesystem, storage.Storer, *plumbing.Reference, error) {
func (gi *Git) fetchClone(
ctx context.Context, url, branch string) (billy.Filesystem, storage.Storer, *plumbing.Reference, error) {
// We clone to the memfs go-billy filesystem driver, which doesn't
// allow for direct access to the underlying filesystem. This is
// because we want to be able to run this in a sandboxed environment
Expand Down

0 comments on commit 335c6b9

Please sign in to comment.