Skip to content

Commit

Permalink
Cosmetic fixes in DbStructureCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
ragadeeshu committed Mar 22, 2017
1 parent a5ff6e6 commit 19125df
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -87,7 +87,6 @@ public Iterator<Pair<String,String[]>> knownUniqueIndices()
@Override
public Iterator<Pair<String,String[]>> knownUniqueConstraints()
{
//TODO: Add support for composite indexes
return Iterators.map( uniquenessConstraint -> {
String label = labels.byIdOrFail( uniquenessConstraint.schema().getLabelId() );
String[] propertyKeyNames = propertyKeys
Expand Down Expand Up @@ -357,8 +356,8 @@ public Pair<String,String[]> next()
//TODO: Add support for composite indexes
LabelSchemaDescriptor next = iterator.next();
String label = labels.byIdOrFail( next.getLabelId() );
String[] propertyKey = propertyKeys.byIdOrFail( next.getPropertyIds() );
return Pair.of( label, propertyKey );
String[] propertyKeyNames = propertyKeys.byIdOrFail( next.getPropertyIds() );
return Pair.of( label, propertyKeyNames );
}

@Override
Expand Down

0 comments on commit 19125df

Please sign in to comment.