Skip to content

Commit 13093c2

Browse files
committed
build: remove extra empty line when imports are present
1 parent 2bbeaab commit 13093c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/node_modules/@stdlib/_tools/scripts/create_namespace_types.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,12 @@ function createDefinitionFile( ns, imports, properties, description ) {
121121
'',
122122
'// TypeScript Version: 4.1',
123123
'',
124-
'/* eslint-disable max-lines' + ( ( properties.length === 0 ) ? ', @typescript-eslint/no-empty-interface' : '' ) + ' */',
125-
''
124+
'/* eslint-disable max-lines' + ( ( properties.length === 0 ) ? ', @typescript-eslint/no-empty-interface' : '' ) + ' */'
126125
];
127126
if ( imports.length > 0 ) {
128127
lines.push( '', imports.join( '\n' ), '' );
128+
} else {
129+
lines.push( '' );
129130
}
130131
lines = lines.concat([
131132
'/**',

0 commit comments

Comments
 (0)