-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update logic for dealing with open filesystems
Showing
1 changed file
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No need to wrap everything in Try, the thing we were talking about where everything needs to be Try is about the things you flatMap (
<-
) being Try as opposed to some other flatMappable thing. For calls that won't throw an error, you can instead do:Also, braces are necessary for multi-line expressions but for a single line it's preferred to use parens: