Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Dec 11, 2024
1 parent 7ec5247 commit a7d3917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cocos/spine/skeleton-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class SkeletonCache {
delete animationPool[key];
}
}
let skeletonInfo = this._skeletonCache[uuid];
const skeletonInfo = this._skeletonCache[uuid];
const skeleton = skeletonInfo && skeletonInfo.skeleton;
if (skeleton) {
spine.wasmUtil.destroySpineSkeleton(skeleton);
Expand Down
3 changes: 1 addition & 2 deletions cocos/spine/skeleton-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ export class SkeletonData extends Asset {
this._skeletonCache = spine.wasmUtil.createSpineSkeletonDataWithBinary(byteSize, this._atlasText, this.textureNames, textureUUIDs);
spine.wasmUtil.registerSpineSkeletonDataWithUUID(this._skeletonCache, uuid);
}
}

}
return this._skeletonCache;
}

Expand Down

0 comments on commit a7d3917

Please sign in to comment.