Skip to content

Commit

Permalink
fix(module:skeleton): improve code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell committed Nov 25, 2018
1 parent ec6720f commit 05a10a5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/skeleton/nz-skeleton.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ export class NzSkeletonComponent implements OnInit, OnChanges {
@Input() nzParagraph: NzSkeletonParagraph | boolean = true;

toCSSUnit(value: number | string = ''): string {
if (typeof value === 'number') {
return `${value}px`;
} else if (typeof value === 'string') {
return value;
}
return typeof value === 'number' ? `${value}px` : value;
}

private getTitleProps(): NzSkeletonTitle {
Expand Down

0 comments on commit 05a10a5

Please sign in to comment.