Skip to content

Commit

Permalink
Use let for mutable, const for immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumer authored Nov 14, 2024
1 parent c6fb1c6 commit a6d8252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/easywasi.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ export class WasiPreview1 {
if (!fileDesc) return defs.ERRNO_BADF
if (fileDesc.type === 'stdio') return defs.ERRNO_SPIPE

var stats = null
let stats = null
let newPosition = 0
let noffset = Number(offset)
const noffset = Number(offset)

try {
stats = this.fs.statSync(fileDesc.handle.path)
Expand Down

0 comments on commit a6d8252

Please sign in to comment.