Skip to content

Commit

Permalink
nit: change conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin committed Oct 31, 2017
1 parent 11c17cf commit cd4d34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class CdkTable<T> implements CollectionViewer {
}

ngAfterContentInit() {
if (!this._headerDef && this._rowDefs.length == 0) {
if (!this._headerDef && !this._rowDefs.length) {
throw getTableMissingRowDefsError();
}

Expand Down

0 comments on commit cd4d34d

Please sign in to comment.