Skip to content

Commit

Permalink
Two blank lines (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyme authored and ReedCopsey committed Jan 31, 2018
1 parent 1b8f1f4 commit c284cd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gjallarhorn/Dependencies.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ module WeakRef =
f(t)
true
| _ -> false

/// Return true if a weak reference is still alive
let test (f : 'a -> bool) (wr : WeakReference<'a>) =
match wr.TryGetTarget() with
| true, t ->
true, f(t)
| _ ->
false, false

/// See if a specific target is contained by a weak reference
let internal contains (target : 'a) (wr : WeakReference<'a>) =
match wr.TryGetTarget() with
Expand Down

0 comments on commit c284cd9

Please sign in to comment.