Skip to content

Commit

Permalink
address reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
zhexuany committed Aug 22, 2019
1 parent 85759b4 commit fa263eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public List<TiTableInfo> listTables(TiDBInfo db) {
tableMap = loadTables(db);
}
Collection<TiTableInfo> tables = tableMap.values();
return tables.stream().filter(TiTableInfo::isNotView).collect(Collectors.toList());
return tables.stream().filter(tbl -> !tbl.isView()).collect(Collectors.toList());
}

public TiTableInfo getTable(TiDBInfo db, String tableName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ public TiTableInfo(
primaryKeyColumn = primaryKey;
}

public boolean isNotView() {
return this.viewInfo == null;
}

public boolean isView() {
return this.viewInfo != null;
}
Expand Down

0 comments on commit fa263eb

Please sign in to comment.