diff options
Diffstat (limited to 'src/browser')
-rw-r--r-- | src/browser/web_browser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browser/web_browser.rs b/src/browser/web_browser.rs index 552d72c..34424b6 100644 --- a/src/browser/web_browser.rs +++ b/src/browser/web_browser.rs @@ -131,7 +131,7 @@ impl Browser { url: &str, ) -> WebDriverResult<Option<HashMap<String, String>>> { if let Some(_d) = &self.driver { - if url != "" { + if !url.is_empty() { _d.get(url).await?; } @@ -139,7 +139,7 @@ impl Browser { match self.check_login().await { Ok(true) => { // Login has been made, so reload the url - if url != "" { + if !url.is_empty() { _d.get(url).await?; } } |