Skip to content

Commit

Permalink
Remove wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Jul 12, 2016
1 parent 4268d01 commit a12892f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.Core/DependenciesFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type DependenciesFile(fileName,groups:Map<GroupName,DependenciesGroup>, textRepr
let getRestrictionList =
let projectFrameworks = lazy (
let lockFile = dependenciesFile.FindLockfile()
let dir = (lockFile : FileInfo).DirectoryName // wtf have to have the cast here so that the compiler doesn't coerce the lockFile to an obj
let dir = (lockFile : FileInfo).DirectoryName
let projects = ProjectFile.FindAllProjects dir
let frameworks = projects |> Array.choose ProjectFile.getTargetFramework |> Array.distinct
frameworks |> Array.map FrameworkRestriction.Exactly |> List.ofArray
Expand Down

0 comments on commit a12892f

Please sign in to comment.