Skip to content

Commit bb07a76

Browse files
Trotttargos
authored andcommitted
tools: revise line in configure.py for clarity
* Replace unused identifier with Python convention `_`. * Remove unneeded parentheses. * Remove line-wrapping. I confirmed that this doesn't change the output by running `./configure --shared-zlib` and confirming that it created the same `common.gypi` with and without these changes. The code changed here doesn't run unless there is a `--shared-*` flag. PR-URL: #36551 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent ba4788d commit bb07a76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

configure.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1248,8 +1248,7 @@ def configure_library(lib, output, pkgname=None):
12481248
output['variables']['node_' + shared_lib] = b(getattr(options, shared_lib))
12491249

12501250
if getattr(options, shared_lib):
1251-
(pkg_libs, pkg_cflags, pkg_libpath, pkg_modversion) = (
1252-
pkg_config(pkgname or lib))
1251+
(pkg_libs, pkg_cflags, pkg_libpath, _) = pkg_config(pkgname or lib)
12531252

12541253
if options.__dict__[shared_lib + '_includes']:
12551254
output['include_dirs'] += [options.__dict__[shared_lib + '_includes']]

0 commit comments

Comments
 (0)