Browse Source

Merge "Rewrite method contains_url in utils"

Jenkins 4 years ago
parent
commit
d95c74d421
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      doc8/utils.py

+ 1
- 3
doc8/utils.py View File

@@ -65,9 +65,7 @@ def filtered_traverse(document, filter_func):
65 65
 
66 66
 
67 67
 def contains_url(line):
68
-    if "http://" in line or "https://" in line:
69
-        return True
70
-    return False
68
+    return "http://" in line or "https://" in line
71 69
 
72 70
 
73 71
 def has_any_node_type(node, node_types):

Loading…
Cancel
Save