Skip to content

Commit

Permalink
Update src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Gregg <[email protected]>
  • Loading branch information
popematt and tgregg authored Jan 2, 2025
1 parent a9fc6ea commit 75e012d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class MacroEvaluator {
when (it) {
is StringValue -> newSymbolToken(it.value)
is SymbolValue -> it.value
is DataModelValue -> throw IonException("Invalid argument type for 'make_string': ${it.type}")
is DataModelValue -> throw IonException("Invalid argument type for 'annotate': ${it.type}")
else -> unreachable("Unreachable without stepping in to a container")

Check warning on line 254 in src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt

View check run for this annotation

Codecov / codecov/patch

src/main/java/com/amazon/ion/impl/macro/MacroEvaluator.kt#L254

Added line #L254 was not covered by tests
}
}
Expand Down

0 comments on commit 75e012d

Please sign in to comment.