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 13, 2017
1 parent 6996171 commit 4d52e41
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 @@ -177,7 +177,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 4d52e41

Please sign in to comment.