Skip to content

Conversation

cristianoc
Copy link
Collaborator

No description provided.

let path = Filename.concat (Filename.concat startPath "node_modules") name in
if Files.exists path then Some path
else if startPath = "/" then None
else if startPath = "/" || Filename.dirname startPath = startPath then None
Copy link
Member

Choose a reason for hiding this comment

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

The first condition can be dropped right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it can be dropped.

@chenglou
Copy link
Member

This is probably it.

@chenglou chenglou merged commit 470ad0f into master Apr 29, 2021
@chenglou chenglou deleted the inf branch April 29, 2021 14:54
@chenglou chenglou mentioned this pull request Apr 29, 2021
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.

2 participants