Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-zulin committed Dec 22, 2023
1 parent f7104a7 commit b4781c7
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ public Table describeTable(String name, List<EntitySchema.JavaField> columns, Li
List<Index> ydbIndexes = indexes.stream()
.map(i -> new Index(i.getIndexName(), i.getFieldNames()))
.toList();
TtlModifier tableTtl = ttlModifier == null ? null :
new TtlModifier(ttlModifier.getFieldName(), ttlModifier.getInterval());
TtlModifier tableTtl = ttlModifier == null
? null
: new TtlModifier(ttlModifier.getFieldName(), ttlModifier.getInterval());
return new Table(tablespace + name, ydbColumns, ydbIndexes, tableTtl);
}

Expand Down Expand Up @@ -282,8 +283,9 @@ private Table describeTableInternal(String path) {
.filter(i -> i.getType() == TableIndex.Type.GLOBAL)
.map(i -> new Index(i.getName(), i.getColumns()))
.toList(),
table.getTableTtl() == null || table.getTableTtl().getTtlMode() == TableTtl.TtlMode.NOT_SET ? null :
new TtlModifier(table.getTableTtl().getDateTimeColumn(), table.getTableTtl().getExpireAfterSeconds())
table.getTableTtl() == null || table.getTableTtl().getTtlMode() == TableTtl.TtlMode.NOT_SET
? null
: new TtlModifier(table.getTableTtl().getDateTimeColumn(), table.getTableTtl().getExpireAfterSeconds())
);
}

Expand Down

0 comments on commit b4781c7

Please sign in to comment.