Skip to content

Commit

Permalink
remove unused var
Browse files Browse the repository at this point in the history
Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>
  • Loading branch information
yujin-emma committed Feb 6, 2024
1 parent 66c1901 commit 951ce61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ const searchObj = {
},
},
}; // -> success
const targetDataSourceId = 'target-data-source-id';

// non-multi-namespace types shouldn't have origin IDs, but we include test cases to ensure it's handled gracefully
// non-multi-namespace types by definition cannot result in an unresolvable conflict, so we don't include test cases for those
const importId3 = 'id-foo';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const createSavedObjects = async <T>({
}
return { ...object, ...(references && { references }) };
});

console.log("objectIdMap", objectIdMap)

Check failure on line 166 in src/core/server/saved_objects/import/create_saved_objects.ts

View workflow job for this annotation

GitHub Actions / Build and Verify on Linux (ciGroup1)

Replace `console.log("objectIdMap",·objectIdMap)` with `··console.log('objectIdMap',·objectIdMap);`

Check failure on line 166 in src/core/server/saved_objects/import/create_saved_objects.ts

View workflow job for this annotation

GitHub Actions / Build and Verify on Linux (ciGroup1)

Unexpected console statement
const resolvableErrors = ['conflict', 'ambiguous_conflict', 'missing_references'];
let expectedResults = objectsToCreate;
if (!accumulatedErrors.some(({ error: { type } }) => resolvableErrors.includes(type))) {
Expand Down

0 comments on commit 951ce61

Please sign in to comment.