Skip to content

Commit 8537e7c

Browse files
committed
Simplify if statement slightly
1 parent 47fb42c commit 8537e7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pre_commit/languages/node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ def _envdir(prefix, version):
2424

2525

2626
def get_env_patch(venv): # pragma: windows no cover
27-
lib_dir = 'lib'
2827
if sys.platform == 'cygwin': # pragma: no cover
2928
_, win_venv, _ = cmd_output('cygpath', '-w', venv)
3029
install_prefix = r'{}\bin'.format(win_venv.strip())
30+
lib_dir = 'lib'
3131
elif sys.platform == 'win32': # pragma: no cover
3232
install_prefix = bin_dir(venv)
3333
lib_dir = 'Scripts'
3434
else: # pragma: windows no cover
3535
install_prefix = venv
36+
lib_dir = 'lib'
3637
return (
3738
('NODE_VIRTUAL_ENV', venv),
3839
('NPM_CONFIG_PREFIX', install_prefix),

0 commit comments

Comments
 (0)