Skip to content

Commit

Permalink
FileConventions: remove extra parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab committed May 23, 2023
1 parent 8c5ba39 commit 1217c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FileConventions/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let DetectUnpinnedVersionsInGitHubCI(fileInfo: FileInfo) =
latestTagInRunsOnRegex.IsMatch fileText

let DetectUnpinnedDotnetToolInstallVersions(fileInfo: FileInfo) =
assert (fileInfo.FullName.EndsWith(".yml"))
assert fileInfo.FullName.EndsWith ".yml"

let fileLines = File.ReadLines fileInfo.FullName

Expand All @@ -61,7 +61,7 @@ let DetectUnpinnedDotnetToolInstallVersions(fileInfo: FileInfo) =
fileLines
|> Seq.filter(fun line -> dotnetToolInstallRegex.IsMatch line)
|> Seq.filter(fun line ->
not(line.Contains("--version")) && not(line.Contains("-v"))
not(line.Contains "--version") && not(line.Contains "-v")
)
|> (fun unpinnedVersions -> Seq.length unpinnedVersions > 0)

Expand Down

0 comments on commit 1217c08

Please sign in to comment.