fix linter errors

This commit is contained in:
Yatao Li 2020-12-19 22:35:12 +08:00
commit f20c4c9725
3 changed files with 10 additions and 10 deletions

View file

@ -21,7 +21,7 @@ import os
GADGETS = {
'vscode-cpptools': {
'language': ['c', 'cpp', 'rust'],
'language': [ 'c', 'cpp', 'rust' ],
'download': {
'url': 'https://github.com/Microsoft/vscode-cpptools/releases/download/'
'${version}/${file_name}',
@ -225,7 +225,7 @@ GADGETS = {
},
},
'netcoredbg': {
'language': ['csharp', 'fsharp', 'vbnet'],
'language': [ 'csharp', 'fsharp', 'vbnet' ],
'enabled': False,
'download': {
'url': ( 'https://github.com/Samsung/netcoredbg/releases/download/'

View file

@ -230,8 +230,8 @@ def GadgetListToInstallerArgs( *gadget_list ):
continue
lang = gadget[ "language" ]
if isinstance(lang, list):
lang = lang[0]
if isinstance( lang, list ):
lang = lang[ 0 ]
if not gadget.get( 'enabled', True ):
installer_args.append( f'--force-enable-{lang}' )