Skip to content

Commit

Permalink
feat: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
cptbtptpbcptdtptp committed Jan 9, 2025
1 parent cada2c0 commit 3f48d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/loader/src/SpriteAtlasLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ class SpriteAtlasLoader extends Loader<SpriteAtlas> {
}
config.atlasRotated && (sprite.atlasRotated = true);
}
width === undefined || sprite.width === width;
height === undefined || sprite.height === height;
width === undefined || (sprite.width = width);
height === undefined || (sprite.height = height);

Check warning on line 108 in packages/loader/src/SpriteAtlasLoader.ts

View check run for this annotation

Codecov / codecov/patch

packages/loader/src/SpriteAtlasLoader.ts#L107-L108

Added lines #L107 - L108 were not covered by tests
return sprite;
}
}

0 comments on commit 3f48d06

Please sign in to comment.