Skip to content

Commit

Permalink
Fix/simplify and tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Jan 3, 2024
1 parent 451fbf0 commit 2175a11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions AltCover.Engine/Instrument.fs
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,7 @@ module internal Instrument =
let attrtype = va |> Seq.tryHead

let injectRef (ref: string) =
let constructor =
attrtype.Value.AttributeType
.Resolve()
.GetConstructors()
|> Seq.head
let constructor = attrtype.Value.Constructor

let blob =
System.Collections.Generic.List<Byte>(System.Text.Encoding.ASCII.GetBytes(ref))
Expand Down Expand Up @@ -1484,6 +1480,7 @@ module internal Instrument =
[<assembly: SuppressMessage("Gendarme.Rules.Globalization",
"PreferStringComparisonOverrideRule",
Scope = "member", // MethodDefinition
Target = "AltCover.Instrument/I/tag@243::Invoke(System.String)",
Target =
"AltCover.Instrument/I/tag@243::Invoke(System.String)",
Justification = "Replace override not available")>]
()
2 changes: 1 addition & 1 deletion AltCover.Monitor.Tests/MonitorTest.fs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module MonitorTests =

test'
<@
code > 115
code > 112
&& code < 261
&& branch > 24
&& branch < 38
Expand Down

0 comments on commit 2175a11

Please sign in to comment.