lint: return error last
2 files changed, 2 insertions(+), 2 deletions(-)
M internal/vcs/repository.go → internal/vcs/repository.go
@@ -23,7 +23,7 @@ repo *git.Repository log *log.Logger } -func CloneOrOpen(cfg *Options, log *log.Logger) (repo *Repository, err error, exists bool) { +func CloneOrOpen(cfg *Options, log *log.Logger) (repo *Repository, exists bool, err error) { stat, err := os.Stat(cfg.LocalPath) exists = err == nil if err != nil && !errors.Is(err, fs.ErrNotExist) {
M internal/website/mux.go → internal/website/mux.go
@@ -63,7 +63,7 @@ Development: opts.Development, Destination: opts.Destination, } - repo, err, exists := vcs.CloneOrOpen(&vcs.Options{ + repo, exists, err := vcs.CloneOrOpen(&vcs.Options{ LocalPath: opts.Source, RemoteURL: opts.VCS.RemoteURL, Branch: opts.VCS.Branch,