We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a43f9d commit 0757a99Copy full SHA for 0757a99
src/FSharpLint.Client/LSPFSharpLintServiceTypes.fs
@@ -20,9 +20,9 @@ with
20
static member from (filePath: string) =
21
if File.Exists(filePath) then
22
// Path.GetFullPath to resolve path like /foo/bar/../baz
23
- let folder = ((filePath |> Path.GetFullPath |> FileInfo).Directory).FullName
24
- if DirectoryInfo(folder).Exists then
25
- folder |> Folder |> Some
+ let folder = ((filePath |> Path.GetFullPath |> FileInfo).Directory)
+ if folder.Exists then
+ folder.FullName |> Folder |> Some
26
else
27
None
28
0 commit comments