Skip to content

Commit

Permalink
refactor: revert JSUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Jan 7, 2024
1 parent 20b2c4a commit d85fa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/jagex2/util/JsUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const decompressBz2 = (data: Uint8Array, addMagic: boolean = true, prepen

export const decodeJpeg = async (data: Uint8Array | null): Promise<ImageData> => {
if (!data) {
throw new Error('Input jpeg data was null!');
throw new Error('Input jpeg data was null!');
}
if (data[0] !== 0xff) {
// fix invalid JPEG header
Expand Down

0 comments on commit d85fa2e

Please sign in to comment.