Skip to content

Commit 5f3e162

Browse files
authored
Appease flake8
1 parent b22ee6b commit 5f3e162

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pre_commit/languages/node.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717

1818

1919
def get_env_patch(venv): # pragma: windows no cover
20+
config = os.path.join(venv, 'bin') if sys.platform == 'cygwin' else venv
2021
return (
2122
('NODE_VIRTUAL_ENV', venv),
22-
('NPM_CONFIG_PREFIX', os.path.join(venv, 'bin') if sys.platform == 'cygwin' else venv),
23-
('npm_config_prefix', os.path.join(venv, 'bin') if sys.platform == 'cygwin' else venv),
23+
('NPM_CONFIG_PREFIX', config),
24+
('npm_config_prefix', config),
2425
('NODE_PATH', os.path.join(venv, 'lib', 'node_modules')),
2526
('PATH', (os.path.join(venv, 'bin'), os.pathsep, Var('PATH'))),
2627
)

0 commit comments

Comments
 (0)