Skip to content

Commit

Permalink
Serialize to YAML moved to if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bichitra95 committed Aug 6, 2024
1 parent 0cb18dd commit 3853127
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ private void processCreateContract(AtlasEntity entity, EntityMutationContext con
authorizeContractCreateOrUpdate(entity, associatedAsset);

boolean contractSync = syncContractCertificateStatus(entity, contract);
contractString = DataContract.serialize(contract);
if (!isContractYaml(entity)) {
contractString = DataContract.serialize(contract);
entity.setAttribute(ATTR_CONTRACT, contractString);
}
String contractStringJSON = DataContract.serializeJSON(contract);
Expand Down

0 comments on commit 3853127

Please sign in to comment.