Skip to content

Commit 27007e8

Browse files
authored
chore: Remove usage of errors.Cause (#5291)
Signed-off-by: Luke Massa <[email protected]>
1 parent 8018a2f commit 27007e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/events/project_command_builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ func (p *DefaultProjectCommandBuilder) buildProjectCommand(ctx *command.Context,
825825
// use the default repository workspace because it is the only one guaranteed to have an atlantis.yaml,
826826
// other workspaces will not have the file if they are using pre_workflow_hooks to generate it dynamically
827827
repoDir, err := p.WorkingDir.GetWorkingDir(ctx.Pull.BaseRepo, ctx.Pull, DefaultWorkspace)
828-
if os.IsNotExist(errors.Cause(err)) {
828+
if errors.Is(err, os.ErrNotExist) {
829829
return projCtx, errors.New("no working directory found–did you run plan?")
830830
} else if err != nil {
831831
return projCtx, err

0 commit comments

Comments
 (0)