Skip to content

Commit

Permalink
... fix lint. i forgot to make this automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivaxy committed Jun 15, 2024
1 parent 5cfdfa1 commit 3be2227
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/java-edition/src/mcfunction/parser/argument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,10 @@ const componentTest: core.InfallibleParser<ComponentTestNode> = (src, ctx) => {
src.skipWhitespace()

if (src.trySkip('=')) {
let value: core.Result<nbt.NbtNode> | undefined = nbt.parser.entry(src, ctx);
let value: core.Result<nbt.NbtNode> | undefined = nbt.parser.entry(
src,
ctx,
)

if (value == core.Failure) {
ctx.err.report(localize('expected', localize('nbt.node')), src)
Expand All @@ -1879,7 +1882,10 @@ const componentTest: core.InfallibleParser<ComponentTestNode> = (src, ctx) => {
}
if (src.trySkip('~')) {
resLoc.options.category = 'item_sub_predicate_type'
let predicate: core.Result<nbt.NbtNode> | undefined = nbt.parser.entry(src, ctx)
let predicate: core.Result<nbt.NbtNode> | undefined = nbt.parser.entry(
src,
ctx,
)

if (predicate == core.Failure) {
ctx.err.report(localize('expected', localize('nbt.node')), src)
Expand Down

0 comments on commit 3be2227

Please sign in to comment.