File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/insomnia/src/main/importers Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,9 @@ export const convert = async (
2626 importerId ?: string ;
2727 } = { } ,
2828) => {
29- const emptyInput = ! importEntry . contentStr && ! importEntry . oriFilePath && ! importEntry . oriFileName ;
30- if ( ! importEntry || emptyInput ) {
31- return null ;
32- }
3329 const allImporters = ( await import ( './importers' ) ) . importers ;
34- const filteredImporters = importerId ? allImporters . filter ( i => i . id === importerId ) : allImporters ;
30+ const filteredImporters = importEntry && importerId ? allImporters . filter ( i => i . id === importerId ) : allImporters ;
3531 const errMsgList : string [ ] = [ ] ;
36-
3732 for ( const importer of filteredImporters ) {
3833 const resources = await ( importer . acceptFilePath === true
3934 ? importer . convert ( importEntry )
You can’t perform that action at this time.
0 commit comments