Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename "fileName" to "line"
  • Loading branch information
oopbase authored and forki committed Feb 28, 2018
commit 668b87d6236122650e9b7fb9ddea9994b1587d0f
6 changes: 3 additions & 3 deletions src/Paket.Core/Versioning/Cache.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ type Cache = {
{ this with Location = Path.Combine(root,this.Location) |> normalizePath }

static member Parse(line : string) =
let normalizeHomeDirectory (fileName : string) =
let normalizeHomeDirectory (line : string) =
let homeDirectory = "~"
fileName.Replace(homeDirectory, Environment.GetFolderPath(Environment.SpecialFolder.UserProfile))
line.Replace(homeDirectory, Environment.GetFolderPath(Environment.SpecialFolder.UserProfile))

let normalizedLine = normalizeHomeDirectory line

Expand Down Expand Up @@ -66,4 +66,4 @@ module Cache =
lock lockObj (fun () -> inaccessibleCaches.Add cache |> ignore)

let isInaccessible cache =
lock lockObj (fun () -> inaccessibleCaches.Contains cache)
lock lockObj (fun () -> inaccessibleCaches.Contains cache)