Skip to content

Commit

Permalink
Remove unnecessary conversions (#357)
Browse files Browse the repository at this point in the history
sample_01 is already a byte slice. Those conversions don't make any difference.
  • Loading branch information
muesli authored and blgm committed Aug 19, 2019
1 parent 2e3b965 commit 7bf756a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions matchers/match_xml_matcher_test.go
Expand Up @@ -43,9 +43,7 @@ var _ = Describe("MatchXMLMatcher", func() {
})

It("should work with byte arrays", func() {
Expect([]byte(sample_01)).Should(MatchXML([]byte(sample_01)))
Expect([]byte(sample_01)).Should(MatchXML(sample_01))
Expect(sample_01).Should(MatchXML([]byte(sample_01)))
Expect(sample_01).Should(MatchXML(sample_01))
})
})

Expand Down

0 comments on commit 7bf756a

Please sign in to comment.