Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't fail when removing nonexistent path #40

Merged
merged 3 commits into from
Jul 30, 2019

Conversation

matthewgraf
Copy link

No description provided.

override def remove(path: Path): F[Unit] = F.delay(Files.delete(path))
override def remove(path: Path): F[Unit] = F.delay({
Files.deleteIfExists(path)
()
Copy link
Author

@matthewgraf matthewgraf Jul 16, 2019

Choose a reason for hiding this comment

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

compiler complained about discarded non-Unit value 🙄

Copy link

@brianbrown473 brianbrown473 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@srki-lendup srki-lendup left a comment

Choose a reason for hiding this comment

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

Looks good.

Co-Authored-By: Gavin Bisesi <Daenyth+github@gmail.com>
@matthewgraf matthewgraf merged commit 4c6fd1a into lendup:master Jul 30, 2019
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.

4 participants