Skip to content

Commit 1d333fa

Browse files
authored
fix(project): propagate context after determining correct project (#614)
1 parent 2b2465c commit 1d333fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/lk/project.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var (
9696
func loadProjectConfig(ctx context.Context, cmd *cli.Command) (context.Context, error) {
9797
conf, err := config.LoadOrCreate()
9898
if err != nil {
99-
return nil, err
99+
return ctx, err
100100
}
101101
cliConfig = conf
102102

@@ -108,7 +108,7 @@ func loadProjectConfig(ctx context.Context, cmd *cli.Command) (context.Context,
108108
}
109109
}
110110
}
111-
return nil, nil
111+
return ctx, nil
112112
}
113113

114114
func addProject(ctx context.Context, cmd *cli.Command) error {

0 commit comments

Comments
 (0)