From 898b4bbb3f19570d73ad4101a25ca5f457a2e4d4 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 12:42:56 +0000 Subject: [PATCH 1/2] refactor: convert logical operator to optional chainining The [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) operator can be used to perform null checks before accessing a property, or calling a function. --- aether-core/aether/client/src/app/renderermain.js | 4 ++-- .../client/src/app/services/feapiconsumer/feapiconsumer.js | 4 ++-- aether-core/aether/client/src/app/store/index.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aether-core/aether/client/src/app/renderermain.js b/aether-core/aether/client/src/app/renderermain.js index 797b3b6..d88f742 100644 --- a/aether-core/aether/client/src/app/renderermain.js +++ b/aether-core/aether/client/src/app/renderermain.js @@ -3,7 +3,7 @@ This is the main entry point to the client app. See app.vue for the start logic, and globally-applicable css. */ var __awaiter = - (this && this.__awaiter) || + ( this?.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { @@ -31,7 +31,7 @@ var __awaiter = }) } var __generator = - (this && this.__generator) || + ( this?.__generator) || function (thisArg, body) { var _ = { label: 0, diff --git a/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js b/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js index 31264c1..51309a9 100644 --- a/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js +++ b/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js @@ -1,7 +1,7 @@ 'use strict' // Services > Frontend API Consumer var __awaiter = - (this && this.__awaiter) || + ( this?.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { @@ -29,7 +29,7 @@ var __awaiter = }) } var __generator = - (this && this.__generator) || + ( this?.__generator) || function (thisArg, body) { var _ = { label: 0, diff --git a/aether-core/aether/client/src/app/store/index.js b/aether-core/aether/client/src/app/store/index.js index 6c67298..682357d 100644 --- a/aether-core/aether/client/src/app/store/index.js +++ b/aether-core/aether/client/src/app/store/index.js @@ -5,7 +5,7 @@ This is the data store for the client. This data store does not hold any persistent data, nor does it cache it. The point of this is to hold the instance data. The frontend is the actual caching and compile logic that regenerates the data to be used as needed. */ var __assign = - (this && this.__assign) || + ( this?.__assign) || function () { __assign = Object.assign || From 3b875bd9094130ba46454047cb7f33790a8e2748 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 12:44:04 +0000 Subject: [PATCH 2/2] style: Format code with prettier --- aether-core/aether/client/src/app/renderermain.js | 4 ++-- .../client/src/app/services/feapiconsumer/feapiconsumer.js | 4 ++-- aether-core/aether/client/src/app/store/index.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aether-core/aether/client/src/app/renderermain.js b/aether-core/aether/client/src/app/renderermain.js index d88f742..d47f791 100644 --- a/aether-core/aether/client/src/app/renderermain.js +++ b/aether-core/aether/client/src/app/renderermain.js @@ -3,7 +3,7 @@ This is the main entry point to the client app. See app.vue for the start logic, and globally-applicable css. */ var __awaiter = - ( this?.__awaiter) || + this?.__awaiter || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { @@ -31,7 +31,7 @@ var __awaiter = }) } var __generator = - ( this?.__generator) || + this?.__generator || function (thisArg, body) { var _ = { label: 0, diff --git a/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js b/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js index 51309a9..5d5a67b 100644 --- a/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js +++ b/aether-core/aether/client/src/app/services/feapiconsumer/feapiconsumer.js @@ -1,7 +1,7 @@ 'use strict' // Services > Frontend API Consumer var __awaiter = - ( this?.__awaiter) || + this?.__awaiter || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { @@ -29,7 +29,7 @@ var __awaiter = }) } var __generator = - ( this?.__generator) || + this?.__generator || function (thisArg, body) { var _ = { label: 0, diff --git a/aether-core/aether/client/src/app/store/index.js b/aether-core/aether/client/src/app/store/index.js index 682357d..cbc6cf6 100644 --- a/aether-core/aether/client/src/app/store/index.js +++ b/aether-core/aether/client/src/app/store/index.js @@ -5,7 +5,7 @@ This is the data store for the client. This data store does not hold any persistent data, nor does it cache it. The point of this is to hold the instance data. The frontend is the actual caching and compile logic that regenerates the data to be used as needed. */ var __assign = - ( this?.__assign) || + this?.__assign || function () { __assign = Object.assign ||