lgtm: fix `Mismatch in multiple assignment` error

The old version is technically also correct, but this
commit makes the intent more explicit (and schould make
LGTM happy).
This commit is contained in:
Daniel Mensinger 2019-12-04 15:24:54 +01:00 committed by Jussi Pakkanen
parent ed9d125b9c
commit e6c15b27e6
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class CudaDependency(ExternalDependency):
defaults = [(path, version) for (path, version, default) in paths if default]
if defaults:
return (*defaults[0], True)
return (defaults[0][0], defaults[0][1], True)
platform_msg = 'set the CUDA_PATH environment variable' if self._is_windows() \
else 'set the CUDA_PATH environment variable/create the \'/usr/local/cuda\' symbolic link'