Skip to content

Commit c703dd9

Browse files
committed
fix: remove callback
1 parent 04dac76 commit c703dd9

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/commands/project/deploy/start.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ export default class DeployMetadata extends SfCommand<DeployResultJson> {
240240
...flags,
241241
'target-org': username,
242242
api,
243-
warnCallback: this.warn.bind(this),
244243
},
245244
project
246245
);

src/utils/deploy.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ export type DeployOptions = {
5353
'pre-destructive-changes'?: string;
5454
'post-destructive-changes'?: string;
5555
'purge-on-delete'?: boolean;
56-
warnCallback?: (message: string) => void;
5756
};
5857

5958
/** Manifest is expected. You cannot pass metadata and source-dir array--use those to get a manifest */
60-
export type CachedOptions = Omit<DeployOptions, 'wait' | 'metadata' | 'source-dir' | 'warnCallback'> & {
59+
export type CachedOptions = Omit<DeployOptions, 'wait' | 'metadata' | 'source-dir'> & {
6160
wait: number;
6261
/** whether the user passed in anything for metadata-dir (could be a folder, could be a zip) */
6362
isMdapi: boolean;
@@ -151,10 +150,6 @@ export async function executeDeploy(
151150
subscribeSDREvents: !opts['dry-run'] || !(await org.tracksSource()),
152151
ignoreConflicts: opts['ignore-conflicts'],
153152
});
154-
155-
if (!(await org.tracksSource()) && opts.warnCallback) {
156-
opts.warnCallback(deployMessages.getMessage('noSourceTrackingWarning'));
157-
}
158153
registry = stl.registry;
159154

160155
componentSet = await buildComponentSet(opts, stl);

0 commit comments

Comments
 (0)