Skip to content

Commit 4e8bff8

Browse files
committed
remove redundant asNode conversion
1 parent 0dc68c8 commit 4e8bff8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/shared/src/test/scala/org/virtuslab/yaml/BaseYamlSuite.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trait BaseYamlSuite extends munit.FunSuite {
2121
case Right(tokens) => assertEquals(tokens, expectedTokens)
2222
}
2323

24-
implicit class StringOps(val yaml: String) {
24+
implicit class InternalStringOps(val yaml: String) {
2525
def events: Either[YamlError, List[EventKind]] = {
2626
val tokenizer = Tokenizer.make(yaml)
2727
ParserImpl(tokenizer).getEvents().map(_.map(_.kind))
@@ -38,8 +38,6 @@ trait BaseYamlSuite extends munit.FunSuite {
3838
loop(Nil)
3939
}
4040

41-
def asNode: Either[YamlError, Node] = new org.virtuslab.yaml.StringOps(yaml).asNode
42-
4341
def debugTokens: Unit = pprint.pprintln(tokens)
4442
}
4543

0 commit comments

Comments
 (0)