Skip to content

Commit

Permalink
fix(smells)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablojvritx committed Oct 1, 2023
1 parent 63ddc28 commit b8be8e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apps/apiApp/backend/ApiApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class ApiApp {
server?: Server;

async start() {
const port: string = process.env.PORT || '3000';
const port: string = process.env.PORT ?? '3000';
this.server = new Server(port);

return this.server.listen();
Expand Down
2 changes: 1 addition & 1 deletion src/apps/apiApp/backend/dependency-injection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ContainerBuilder, YamlFileLoader } from 'node-dependency-injection';

const container = new ContainerBuilder();
const loader = new YamlFileLoader(container);
const env = process.env.NODE_ENV || 'dev';
const env = process.env.NODE_ENV ?? 'dev';

loader.load(`${__dirname}/application_${env}.yml`);

Expand Down

0 comments on commit b8be8e3

Please sign in to comment.