Fix project initialization lint
This commit is contained in:
parent
3d472fa040
commit
7656b86d23
|
|
@ -133,7 +133,7 @@ func (f *fakeProjectManager) Add(_ context.Context, in projectsvc.AddInput) (pro
|
|||
}
|
||||
|
||||
func (f *fakeProjectManager) InitializeRepository(_ context.Context, in projectsvc.InitializeRepositoryInput) (projectsvc.InitializeRepositoryResult, error) {
|
||||
return projectsvc.InitializeRepositoryResult{Path: in.Path}, nil
|
||||
return projectsvc.InitializeRepositoryResult(in), nil
|
||||
}
|
||||
|
||||
func (f *fakeProjectManager) SetConfig(_ context.Context, id domain.ProjectID, in projectsvc.SetConfigInput) (projectsvc.Project, error) {
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ func (m *Service) Add(ctx context.Context, in AddInput) (Project, error) {
|
|||
return projectFromRow(row), nil
|
||||
}
|
||||
|
||||
// InitializeRepository prepares a selected folder for project registration by ensuring it has an initial Git commit.
|
||||
func (m *Service) InitializeRepository(ctx context.Context, in InitializeRepositoryInput) (InitializeRepositoryResult, error) {
|
||||
path, err := normalizePath(in.Path)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue