Address the second set of comments from Copilot

This commit is contained in:
base47
2026-02-25 02:00:33 +01:00
parent 80d00f6826
commit fdced04a67
4 changed files with 26 additions and 27 deletions

View File

@@ -133,7 +133,7 @@ const enable_battery_limiter = async () => {
try {
const status = await get_battery_status()
const allow_force_discharge = get_force_discharge_setting()
// 'batery maintain' creates a child process, so when the command exits exec_async does not return.
// 'battery maintain' creates a child process, so when the command exits exec_async does not return.
// That's why here we use a timeout and wait for some time.
await exec_async(
`${ battery } maintain ${ status?.maintain_percentage || 80 }${ allow_force_discharge ? ' --force-discharge' : '' }`,

View File

@@ -1,6 +1,6 @@
const { promises: fs } = require( 'fs' )
const { HOME } = process.env
const util = require("util");
const util = require( 'util' )
let has_alerted_user_no_home = false