Skip to content

Commit

Permalink
fix: code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
nrusso committed Nov 17, 2023
1 parent a986140 commit eb8f685
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/Notification/Presentation/Commands/CreateVapID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ CreateVapID

if (vapidKeys)
{
void Logger.info('publicKey:');
void Logger.info(vapidKeys.publicKey);
void Logger.info('privateKey:');
void Logger.info(vapidKeys.privateKey);
Logger.info('publicKey:');
Logger.info(vapidKeys.publicKey);
Logger.info('privateKey:');
Logger.info(vapidKeys.privateKey);
}
});

Expand Down
10 changes: 5 additions & 5 deletions src/Shared/Factories/SeedFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class SeedFactory

public list(): void
{
void Logger.info('⬐ Seed List');
Object.keys(this.seeds).forEach(name => void Logger.info(`↳ ${name}`));
Logger.info('⬐ Seed List');
Object.keys(this.seeds).forEach(name => Logger.info(`↳ ${name}`));
}

public async init(): Promise<void>
Expand All @@ -29,17 +29,17 @@ class SeedFactory

await (new this.seeds[name]()).init();

void Logger.info(`→ ${name} run successfully ✔`);
Logger.info(`→ ${name} run successfully ✔`);
}

private async all(): Promise<void>
{
void Logger.info('⬐ All Seed Run');
Logger.info('⬐ All Seed Run');
for await (const name of Object.keys(this.seeds))
{
await (new this.seeds[name]()).init();

void Logger.info(`↳ ${name} run successfully ✔`);
Logger.info(`↳ ${name} run successfully ✔`);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/closed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const closedApplication = (server: Server, cache: ICacheRepository, createConnec
{
function onSignal()
{
void Logger.info('server is starting cleanup');
Logger.info('server is starting cleanup');
cache.close();
return Promise.all([
createConnection.close(true),
Expand All @@ -20,7 +20,7 @@ const closedApplication = (server: Server, cache: ICacheRepository, createConnec

function onShutdown()
{
void Logger.info('cleanup finished, server is shutting down');
Logger.info('cleanup finished, server is shutting down');
cache.close();
return Promise.all([
createConnection.close(true),
Expand Down

0 comments on commit eb8f685

Please sign in to comment.