Skip to content

Commit dbd1959

Browse files
committed
style: remove linebreak
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 372622f commit dbd1959

File tree

1 file changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/_tools/eslint/rules/require-file-extensions/lib

1 file changed

+1
-2
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/require-file-extensions/lib/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ function main( context ) {
116116
dir = dirname( filename );
117117
if ( startsWith( requirePath, '.' ) ) {
118118
requirePath = path.resolve( dir, requirePath );
119-
}
120-
else if ( !startsWith( requirePath, '@stdlib' ) ) {
119+
} else if ( !startsWith( requirePath, '@stdlib' ) ) {
121120
// Allow simple package names without slashes (e.g., 'tape', 'glob'):
122121
if ( !contains( requirePath, '/' ) ) {
123122
return;

0 commit comments

Comments
 (0)