refactor: Add rule no-constant-binary-expression (no-changelog) (#7670)

https://eslint.org/docs/latest/rules/no-constant-binary-expression
This commit is contained in:
Iván Ovejero
2023-11-09 17:50:59 +01:00
committed by GitHub
parent 40dc5a0d85
commit f73a0597ba
11 changed files with 23 additions and 11 deletions

View File

@@ -743,7 +743,7 @@ export class ClickUp implements INodeType {
) {
if (
additionalFields.stepsStart === undefined ||
!additionalFields.stepsEnd === undefined
additionalFields.stepsEnd === undefined
) {
throw new NodeOperationError(
this.getNode(),

View File

@@ -96,7 +96,7 @@ export async function haloPSAApiRequest(
return result;
} catch (error) {
const message = (error as JsonObject).message as string;
if (method === 'DELETE' || 'GET' || ('UPDATE' && message)) {
if (method === 'DELETE' || method === 'GET' || (method === 'UPDATE' && message)) {
let newErrorMessage;
if (message.includes('400')) {
console.log(message);

View File

@@ -235,7 +235,7 @@ export async function odooGet(
password,
mapOdooResources[resource] || resource,
mapOperationToJSONRPC[operation],
[+itemsID] || [],
itemsID ? [+itemsID] : [],
fieldsToReturn || [],
],
},
@@ -326,7 +326,7 @@ export async function odooUpdate(
password,
mapOdooResources[resource] || resource,
mapOperationToJSONRPC[operation],
[+itemsID] || [],
itemsID ? [+itemsID] : [],
fieldsToUpdate,
],
},
@@ -369,7 +369,7 @@ export async function odooDelete(
password,
mapOdooResources[resource] || resource,
mapOperationToJSONRPC[operation],
[+itemsID] || [],
itemsID ? [+itemsID] : [],
],
},
id: Math.floor(Math.random() * 100),