From 28576a5a01c74b5e6aa29b553ab63c4edb5a64a6 Mon Sep 17 00:00:00 2001 From: Lukas Rieger Date: Sun, 20 Aug 2017 18:53:59 +0200 Subject: [PATCH] Codereview: casing isFSharpproject->isFSharpProject --- src/Paket.Core/PackageManagement/NugetConvert.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Paket.Core/PackageManagement/NugetConvert.fs b/src/Paket.Core/PackageManagement/NugetConvert.fs index 99994e848a..b3d09b8e4d 100644 --- a/src/Paket.Core/PackageManagement/NugetConvert.fs +++ b/src/Paket.Core/PackageManagement/NugetConvert.fs @@ -227,13 +227,13 @@ let createPackageRequirement sources (packageName, versionRange, restrictions) d TransitivePrereleases = false Graph = Set.empty } -let private isFSharpproject (projectFileName:string) = +let private isFSharpProject (projectFileName:string) = projectFileName.EndsWith(".fsproj", StringComparison.OrdinalIgnoreCase) let private addFSharpCoreToDependenciesIfRequired nugetEnv packages = let hasFSharpProject = nugetEnv.NuGetProjectFiles - |> Seq.exists (fun (prj,_) -> isFSharpproject prj.FileName) + |> Seq.exists (fun (prj,_) -> isFSharpProject prj.FileName) let hasFSharpCorePackage = packages |> Seq.exists (fun (n,_,_,_) -> "fsharp.core".Equals(n, StringComparison.OrdinalIgnoreCase)) @@ -365,7 +365,7 @@ let addFSharpCoreToReferencesIfRequired projectFileName references = allPackageReferences |> Seq.exists (fun n -> n.Name.CompareString = "fsharp.core") hasFSharpCore - if isFSharpproject projectFileName && not (containsFSharpCore references) then + if isFSharpProject projectFileName && not (containsFSharpCore references) then references.AddNuGetReference (GroupName MainGroup, PackageName "FSharp.Core") else references