chore: Clarify setter to not return a value

Solves this eslint issue:

/puter/packages/phoenix/src/ansi-shell/ANSIShell.js
  86:23  error  Setter cannot return a value  no-setter-return
This commit is contained in:
Sam Atkins 2024-05-01 10:51:29 +01:00
parent 2094e05a2e
commit 64c886bfeb

View File

@ -83,7 +83,7 @@ export class ANSIShell extends EventTarget {
Object.defineProperty(this.env, 'PWD', {
enumerable: true,
get: () => this.variables.pwd,
set: v => this.variables.pwd = v
set: v => { this.variables.pwd = v }
})
Object.defineProperty(this.env, 'ROWS', {
enumerable: true,