Skip to content

Commit abbc241

Browse files
committed
utf8 nits
1 parent 61f4ea7 commit abbc241

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/commands/wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const removeAlias = (file: string): void => {
182182
}
183183

184184
const checkSocketWrapperAlreadySetup = (file: string): boolean => {
185-
const fileContent = fs.readFileSync(file, 'utf-8')
185+
const fileContent = fs.readFileSync(file, 'utf8')
186186
const linesWithSocketAlias = fileContent
187187
.split('\n')
188188
.filter(

src/shadow/tty-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function createNonStandardTTYServer(): TTYSeverResult {
5757
const {
5858
capabilities: { input: hasInput, output: hasOutput },
5959
ipc_version: remote_ipc_version
60-
} = JSON.parse(lineBuff.subarray(0, eolIndex).toString('utf-8'))
60+
} = JSON.parse(lineBuff.subarray(0, eolIndex).toString('utf8'))
6161
lineBuff = null
6262
captured = true
6363
if (remote_ipc_version !== ipc_version) {

src/utils/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface Settings {
3232
let settings: Settings = {}
3333

3434
if (existsSync(settingsPath)) {
35-
const raw = readFileSync(settingsPath, 'utf-8')
35+
const raw = readFileSync(settingsPath, 'utf8')
3636
try {
3737
settings = JSON.parse(Buffer.from(raw, 'base64').toString())
3838
} catch {

0 commit comments

Comments
 (0)