Skip to content

Commit

Permalink
feat(APIM-468): removed undefined return var type
Browse files Browse the repository at this point in the history
  • Loading branch information
avaitonis committed Jul 28, 2023
1 parent 2ec2c5f commit 835b65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/get-int-config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { InvalidConfigException } from '@ukef/config/invalid-config.exception';

// This helper function is used to get integer from configuration.
export const getIntConfig = (environmentVariable: string, defaultValue?: number): number | undefined => {
export const getIntConfig = (environmentVariable: string, defaultValue?: number): number => {
if (typeof environmentVariable === 'undefined') {
if (typeof defaultValue === 'undefined') {
throw new InvalidConfigException(`Environment variable is missing and doesn't have default value.`);
Expand Down

0 comments on commit 835b65f

Please sign in to comment.