Skip to content

fix: Make scope optional#1346

Merged
HazAT merged 2 commits into
nextfrom
fix/scope-param
Jun 4, 2018
Merged

fix: Make scope optional#1346
HazAT merged 2 commits into
nextfrom
fix/scope-param

Conversation

@HazAT
Copy link
Copy Markdown
Member

@HazAT HazAT commented Jun 4, 2018

No description provided.

@HazAT HazAT requested a review from kamilogorek as a code owner June 4, 2018 12:30
@HazAT HazAT requested a review from jan-auer June 4, 2018 12:31
Comment thread packages/core/src/scope.ts Outdated
-Math.max(0, maxBreadcrumbs),
);
public addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): void {
this.breadcrumbs = maxBreadcrumbs
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: maxBreadcrumbs > 0, after which you can remove Math.max down below. Alternatively, use a default value in the parameter list (maxBreadcrumbs: number = 0)

@HazAT HazAT merged commit 799b021 into next Jun 4, 2018
@HazAT HazAT deleted the fix/scope-param branch June 4, 2018 12:48
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