fix linter errors
This commit is contained in:
parent
66130389c5
commit
f20c4c9725
3 changed files with 10 additions and 10 deletions
|
|
@ -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/'
|
||||
|
|
|
|||
|
|
@ -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}' )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue