Skip to content

Commit 6671d80

Browse files
committed
refactor(stepper): parameter formatting and fix typo
1 parent d8f2430 commit 6671d80

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/cdk/stepper/stepper.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class CdkStep implements OnChanges {
170170
return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
171171
}
172172

173-
/** Whether step has error. */
173+
/** Whether step has an error. */
174174
@Input()
175175
get hasError(): boolean {
176176
return this._customError || this._getDefaultError();
@@ -186,8 +186,7 @@ export class CdkStep implements OnChanges {
186186

187187
constructor(
188188
@Inject(forwardRef(() => CdkStepper)) private _stepper: CdkStepper,
189-
@Optional() @Inject(MAT_STEPPER_GLOBAL_OPTIONS) stepperOptions: StepperOptions
190-
) {
189+
@Optional() @Inject(MAT_STEPPER_GLOBAL_OPTIONS) stepperOptions: StepperOptions) {
191190
this._stepperOptions = stepperOptions ? stepperOptions : {};
192191
this._showError = !!this._stepperOptions.showError;
193192
this._useGuidelines = !!this._stepperOptions.useGuidelines;
@@ -386,8 +385,7 @@ export class CdkStepper implements AfterViewInit, OnDestroy {
386385
private _getGuidelineLogic(
387386
step: CdkStep,
388387
isCurrentStep: boolean,
389-
state: StepState = STEP_STATE.NUMBER
390-
): StepState {
388+
state: StepState = STEP_STATE.NUMBER): StepState {
391389
if (step._showError && step.hasError && !isCurrentStep) {
392390
return STEP_STATE.ERROR;
393391
} else if (step.completed && !isCurrentStep) {

0 commit comments

Comments
 (0)