MCPcopy Index your code
hub / github.com/freshframework/fresh / removeEmptyImport

Function removeEmptyImport

packages/update/src/update.ts:520–528  ·  view source on GitHub ↗
(d: tsmorph.ImportDeclaration)

Source from the content-addressed store, hash-verified

518}
519
520function removeEmptyImport(d: tsmorph.ImportDeclaration) {
521 if (
522 d.getNamedImports().length === 0 &&
523 d.getNamespaceImport() === undefined &&
524 d.getDefaultImport() === undefined
525 ) {
526 d.remove();
527 }
528}
529
530function maybePrependReqVar(
531 method:

Callers 1

updateFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected