Skip to content

Commit

Permalink
CPPSDK: warning fix during promoteAndNameSubSchemas (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul authored Jan 17, 2024
1 parent f3593b1 commit 651c8d6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/macrofier/engine.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,6 @@ const getPromotionNameFromContentDescriptor = (descriptor, prefix) => {

const promoteSchema = (location, property, title, document, destinationPath) => {
const destination = getJsonPath(destinationPath, document)
if (destination[title]) {
console.log('Warning: Generated schema `' + title + '` already exists...')
}
destination[title] = location[property]
destination[title].title = title
location[property] = {
Expand Down

0 comments on commit 651c8d6

Please sign in to comment.