Skip to content

Commit

Permalink
fixing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikam14 authored Sep 28, 2024
1 parent 6b0df58 commit 917430d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,7 @@ public class SchemaRegistryServiceImpl implements SchemaRegistryService {
@Override
@NotNull
public CompletableFuture<SchemaAndMetadata> getSchema(String schemaId) {
return getSchema(schemaId, SchemaVersion.Latest).thenApply((schema) -> {
if (schema != null && schema.schema.isDeleted()) {
return null;
} else {
return schema;
}
});
return getSchema(schemaId, SchemaVersion.Latest);
}

@Override
Expand Down

0 comments on commit 917430d

Please sign in to comment.