Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Fix mount loop processing to avoid crash on invalid path #121

Merged
merged 1 commit into from
Jul 13, 2016
Merged

Fix mount loop processing to avoid crash on invalid path #121

merged 1 commit into from
Jul 13, 2016

Conversation

aacebedo
Copy link
Contributor

Instead of leaving the loop when an invalid path is encountered, I ignore it and pass to the next one.

@aacebedo aacebedo changed the title Fix #120 Fix mount loop processing to avoid crash on invalid path Jul 12, 2016
rel, err := filepath.Rel(mount.Destination, mountPath)
if err != nil {
return "", err
continue MountLoop
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait. Why not just continue?

@aacebedo
Copy link
Contributor Author

Documentation of golang describes the continue like this. However it shall be possible to use it without the label. If you prefer this I can rework the commit and retest it

@aacebedo
Copy link
Contributor Author

Re-read the doc and other example. Continue without label shall definitely do the job. I am going to edit the commit and repush it

@aacebedo
Copy link
Contributor Author

done pushed the modification

@ybogdanov ybogdanov merged commit 1afb8f9 into grammarly:dev Jul 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants