Skip to content

Commit

Permalink
consistent callback functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Aug 21, 2023
1 parent 5ac1f45 commit e75b62a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion windowsService-uninstall.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Service } from 'node-windows';
import { serviceConfig } from './windowsService.js';
const svc = new Service(serviceConfig);
svc.on('uninstall', function () {
svc.on('uninstall', () => {
console.log('Uninstall complete.');
console.log('The service exists:', svc.exists);
});
Expand Down
2 changes: 1 addition & 1 deletion windowsService-uninstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { serviceConfig } from './windowsService.js'
const svc = new Service(serviceConfig)

// Listen for the "uninstall" event so we know when it's done.
svc.on('uninstall', function () {
svc.on('uninstall', () => {
console.log('Uninstall complete.')
console.log('The service exists:', svc.exists)
})
Expand Down

0 comments on commit e75b62a

Please sign in to comment.