fix(lint): remove unnecessary async keywords from synchronous functions
- Remove async from functions that don't use await - Change return types from Promise<void> to void for synchronous functions - Fixes all 8 require-await lint warnings - Reduces total lint warnings from 63 to 55
This commit is contained in:
@@ -977,7 +977,7 @@ export class UpsHandler {
|
||||
* Check if the systemd service is running and restart it if it is
|
||||
* This is useful after configuration changes
|
||||
*/
|
||||
public async restartServiceIfRunning(): Promise<void> {
|
||||
public restartServiceIfRunning(): void {
|
||||
try {
|
||||
// Check if the service is active
|
||||
const isActive =
|
||||
|
Reference in New Issue
Block a user