Skip to content

Commit

Permalink
Fixes for pylint failures (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfudally authored Aug 29, 2022
1 parent 9aa718b commit 62ccf7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/common/_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def normalize_url_for_key(url):
components = uri_parse(url)
normalized_url = components.scheme.lower() + '://' + components.netloc.lower()
organization_name = components.path.lower()
if(organization_name and ('visualstudio.com' not in url.lower())):
if (organization_name and ('visualstudio.com' not in url.lower())):
organization_name = organization_name.split('/')[1]
normalized_url = normalized_url + '/' + organization_name
return normalized_url
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/common/credential_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def clear_password(self, key):
file_token = self.get_PAT_from_file(key)
if file_token:
self.delete_PAT_from_file(key)
if(keyring_token is None and file_token is None):
if (keyring_token is None and file_token is None):
raise CLIError(self._CRDENTIAL_NOT_FOUND_MSG)
else:
try:
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/team/invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def invoke(area=None, resource=None,

resource_areas = connection._get_resource_areas(force=True)

if(not area and not resource):
if (not area and not resource):
print('Please wait a couple of seconds while we fetch all required information.')
service_list = []

Expand Down

0 comments on commit 62ccf7e

Please sign in to comment.