Simplify condition
`SchemaTablePrefix.schemaName` being null implies its `tableName` to be
null as well.
@@ -185,7 +185,7 @@ public class CassandraMetadata
private List<SchemaTableName> listTables(ConnectorSession session, SchemaTablePrefix prefix)
{
- if (prefix.getSchemaName() == null || prefix.getTableName() == null) {
+ if (prefix.getTableName() == null) {
return listTables(session, prefix.getSchemaName());
}
return ImmutableList.of(new SchemaTableName(prefix.getSchemaName(), prefix.getTableName()));
