Skip to content

Commit

Permalink
feat: remove useless code
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Apr 7, 2024
1 parent 9bf5468 commit 9c39f6a
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export class WorkspaceConflictSavedObjectsClientWrapper {
options: SavedObjectsCreateOptions = {}
) => {
const { workspaces, id, overwrite } = options;
if (!id || !overwrite) {
return await wrapperOptions.client.create(type, attributes, options);
}
let savedObjectWorkspaces = options?.workspaces;

/**
Expand Down Expand Up @@ -93,9 +90,6 @@ export class WorkspaceConflictSavedObjectsClientWrapper {
options: SavedObjectsCreateOptions = {}
): Promise<SavedObjectsBulkResponse<T>> => {
const { overwrite, namespace } = options;
if (!overwrite) {
return await wrapperOptions.client.bulkCreate(objects, options);
}
/**
* When overwrite, filter out all the objects that have ids
*/
Expand Down

0 comments on commit 9c39f6a

Please sign in to comment.