Skip to content

Commit

Permalink
Some simple cleanup. (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
alesj authored Aug 24, 2020
1 parent 04ecd9a commit 9a21827
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public CompletionStage<ArtifactMetaDataDto> createArtifact(String artifactId, Ar
public CompletionStage<ArtifactMetaDataDto> createArtifactWithMetadata(String artifactId, ArtifactType artifactType, ContentHandle content, EditableArtifactMetaDataDto metaData) throws ArtifactAlreadyExistsException, RegistryStorageException {
return createArtifact(artifactId, artifactType, content)
.thenCompose(amdd -> submitter.submitMetadata(Str.ActionType.UPDATE, artifactId, -1, metaData.getName(), metaData.getDescription(), metaData.getLabels())
.thenApply(v -> DtoUtil.setEditableMetaDataInArtifact((ArtifactMetaDataDto) amdd, metaData)));
.thenApply(v -> DtoUtil.setEditableMetaDataInArtifact(amdd, metaData)));
}

@Override
Expand Down Expand Up @@ -440,7 +440,7 @@ public CompletionStage<ArtifactMetaDataDto> updateArtifact(String artifactId, Ar
public CompletionStage<ArtifactMetaDataDto> updateArtifactWithMetadata(String artifactId, ArtifactType artifactType, ContentHandle content, EditableArtifactMetaDataDto metaData) throws ArtifactAlreadyExistsException, RegistryStorageException {
return updateArtifact(artifactId, artifactType, content)
.thenCompose(amdd -> submitter.submitMetadata(Str.ActionType.UPDATE, artifactId, -1, metaData.getName(), metaData.getDescription(), metaData.getLabels())
.thenApply(v -> DtoUtil.setEditableMetaDataInArtifact((ArtifactMetaDataDto) amdd, metaData)));
.thenApply(v -> DtoUtil.setEditableMetaDataInArtifact(amdd, metaData)));
}


Expand Down

0 comments on commit 9a21827

Please sign in to comment.