Skip to content

Web 1146 shared helpers#90

Draft
irmkr wants to merge 3 commits into
masterfrom
WEB-1146-shared-helpers
Draft

Web 1146 shared helpers#90
irmkr wants to merge 3 commits into
masterfrom
WEB-1146-shared-helpers

Conversation

@irmkr

@irmkr irmkr commented Aug 2, 2021

Copy link
Copy Markdown
Contributor

No description provided.

@irmkr irmkr force-pushed the WEB-1146-shared-helpers branch from 1b14259 to 1b4ca80 Compare August 2, 2021 12:15
import { logger } from '../../helpers/logger';

import { getReleasablePackages } from '../../helpers/get-releasable-packages';
import { missingEnvAttrError } from '../../helpers/validation-errors';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could implement this inside helpers/logger. There you already have the topic. Makes the API much simpler.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also name it throwMissingAttrError. Makes it more clear, that we throw an error inside.

import { getReleasablePackages } from '../../helpers/get-releasable-packages';
import { missingEnvAttrError } from '../../helpers/validation-errors';

const topic = '[analyse] adapt dependencies';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then you also don't have to extract topic.

@irmkr irmkr force-pushed the WEB-1146-shared-helpers branch from 1b4ca80 to 9fd08a3 Compare August 4, 2021 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants