File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -301,11 +301,7 @@ def is_configured(self) -> bool:
301301 Returns:
302302 True if authentication method is available
303303 """
304- return bool (
305- (self .username and self .password )
306- or self ._access_token
307- or self ._refresh_token
308- )
304+ return bool ((self .username and self .password ) or self ._access_token or self ._refresh_token )
309305
310306 def test_connection (self ) -> bool :
311307 """Test the connection to DocumentCloud.
Original file line number Diff line number Diff line change @@ -378,11 +378,7 @@ def is_configured(self) -> bool:
378378 Returns:
379379 True if authentication method is available
380380 """
381- return bool (
382- (self .username and self .password )
383- or self ._access_token
384- or self ._refresh_token
385- )
381+ return bool ((self .username and self .password ) or self ._access_token or self ._refresh_token )
386382
387383 def test_connection (self ) -> bool :
388384 """Test the connection to MuckRock.
You can’t perform that action at this time.
0 commit comments