Skip to content

Commit

Permalink
replace pattern match with if..then..
Browse files Browse the repository at this point in the history
  • Loading branch information
mexx committed Feb 14, 2017
1 parent 1469777 commit a699538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FSharp.Management/StringReaderProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ let createTypedStringReader (resolutionFolder: string) =
match Path.IsPathRooted(path) with
| false -> Path.Combine(resolutionFolder, path)
| true -> path
match File.Exists(filePath) with
| false -> failwithf "Specified file [%s] could not be found" path
| true -> createType typeName filePath
if not <| File.Exists(filePath) then
failwithf "Specified file [%s] could not be found" path
createType typeName filePath
| _ -> failwith "Wrong static parameters to type provider"))

typedStringReader

0 comments on commit a699538

Please sign in to comment.