Skip to content

Commit

Permalink
fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Forchapeatl authored Sep 24, 2024
1 parent 7b666c2 commit 4a3b3f5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions javascript/packages/fury/lib/gen/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { fromString } from "../platformBuffer";
import { CodegenRegistry } from "./router";
import { BaseSerializerGenerator, RefState } from "./serializer";
import SerializerResolver from "../classResolver";
import { MetaString } from "../meta/MetaString";
import { FieldInfo, TypeMeta } from "../meta/TypeMeta";

function computeFieldHash(hash: number, id: number): number {
Expand Down Expand Up @@ -98,11 +97,6 @@ class ObjectSerializerGenerator extends BaseSerializerGenerator {
const options = this.description.options;
const expectHash = computeStructHash(this.description);
const result = this.scope.uniqueName("result");
const fields = Object.entries(options.props).map(([key, value]) => {
return new FieldInfo(key, value.type);
});
const binary = TypeMeta.from_fields(256, fields).to_bytes();
const buffer = Buffer.from(binary);

return `
if (${this.builder.reader.int32()} !== ${expectHash}) {
Expand Down

0 comments on commit 4a3b3f5

Please sign in to comment.