Skip to content

Conversation

@anthony-chu
Copy link
Member

WorkspaceProvider workspaceProvider = bladeCLI.getWorkspaceProvider(baseDir);

if (workspaceProvider != null) {
if ((workspaceProvider != null) || bladeCLI.isInWorkspace(baseDir)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this is the best place to put this check. I put it here to take advantage of the fact that the error was already being displayed here. However, I also considered the possibility of checking this earlier (as early as just after the destDir.exists() check in L105).

What do you think would be a better approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant