Skip to content

Commit

Permalink
[FIX] fmt
Browse files Browse the repository at this point in the history
[CI] update deps
  • Loading branch information
aricart committed Nov 3, 2023
1 parent 57e6505 commit bcc9b58
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:

strategy:
matrix:
deno-version: [1.30.0]
deno-version: [1.36.4]

steps:
- name: checkout project
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: setup deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1.1.1
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}

Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
deno-version: [1.37.2]
deno-version: [1.36.4]
node-version: [21.x, 20.x, 18.x]

steps:
Expand All @@ -25,15 +25,14 @@ jobs:
with:
fetch-depth: 1

- name: setup deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1.1.1
with:
deno-version: ${{ matrix.deno-version }}

- name: setup nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}

- run: npm ci
- run: npm test
2 changes: 1 addition & 1 deletion src/crc16.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class crc16 {
let crc: number = 0;
for (let i = 0; i < data.byteLength; i++) {
let b = data[i];
crc = ((crc << 8) & 0xffff) ^ crc16tab[((crc >> 8) ^ (b)) & 0x00FF];
crc = ((crc << 8) & 0xffff) ^ crc16tab[((crc >> 8) ^ b) & 0x00FF];
}
return crc;
}
Expand Down

0 comments on commit bcc9b58

Please sign in to comment.