mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix SonarQube code smells:
1) String literals should not be duplicated. 2) Prefer using an optional chain expression instead, as it's more concise and easier to read. 3) Expected the Promise rejection reason to be an Error.
This commit is contained in:
@@ -111,7 +111,7 @@ function RightPanel({ schema, ...props }) {
|
||||
try {
|
||||
resolve(props.initValues);
|
||||
} catch (error) {
|
||||
reject(error);
|
||||
reject(new Error(error));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user