From 9ca5be4a2d7cacd834e0effc96329e8c54d23eee Mon Sep 17 00:00:00 2001 From: "jeanchristophe.mqt@gmail.com" Date: Sun, 25 Feb 2024 17:01:58 +0100 Subject: [PATCH] Removed useless log --- .../tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.js | 8 ++------ .../tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.ts | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/FlowPlugins/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.js index 8dc1ff4..40b46d9 100644 --- a/FlowPlugins/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.js @@ -180,7 +180,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function parseRequestResult = _b.sent(); _b.label = 3; case 3: - if (!(parseRequestResult.id !== '-1')) return [3 /*break*/, 8]; + if (!(parseRequestResult.id !== '-1')) return [3 /*break*/, 7]; previewRenameRequestConfig = { method: 'get', url: getNewPathType.delegates.buildPreviewRenameResquestUrl(parseRequestResult), @@ -207,11 +207,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function output.isSuccessful = true; args.jobLog('✔ No rename necessary.'); _b.label = 7; - case 7: return [3 /*break*/, 9]; - case 8: - args.jobLog("No ".concat(getNewPathType.appName, " with a file named '").concat(fileName, "'.")); - _b.label = 9; - case 9: return [2 /*return*/, output]; + case 7: return [2 /*return*/, output]; } }); }); }; diff --git a/FlowPluginsTs/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.ts index a3c3099..456996a 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/tools/applyRadarrOrSonarrNamingPolicy/1.0.0/index.ts @@ -176,8 +176,7 @@ const plugin = async (args: IpluginInputArgs): Promise => { output.isSuccessful = true; args.jobLog('✔ No rename necessary.'); } - } else - args.jobLog(`No ${getNewPathType.appName} with a file named '${fileName}'.`); + } return output; };