We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfeb476 commit b3f8befCopy full SHA for b3f8bef
recipes/crypto-create-credentials/src/workflow.ts
@@ -335,11 +335,9 @@ export default function transform(root: SgRoot): string | null {
335
let importType: ImportType | undefined;
336
337
if (importMatch.kind() === 'import_statement') {
338
- if (importMatch.find({ rule: { kind: 'namespace_import' } })) {
339
- importType = 'NAMESPACE_IMPORT';
340
- } else {
341
- importType = 'DESTRUCTURED_IMPORT';
342
- }
+ importType = importMatch.find({ rule: { kind: 'namespace_import' } })
+ ? 'NAMESPACE_IMPORT'
+ : 'DESTRUCTURED_IMPORT';
343
} else {
344
if (nameNode?.is('object_pattern')) {
345
importType = 'DESTRUCTURED_REQUIRE';
0 commit comments