Commit 20e98fc
Fix some warnings from LGTM (TheAlgorithms#2420)
* fix assignment of a variable to itself
* Fix unnecessary 'else' clause in loop
* formatting and redundant reasignment fix
* mark unreachable code with a TODO comment
* fix variable defined multiple times
* fix static method without static decorator
* revert unintended autoformatting
Co-authored-by: Christian Clauss <cclauss@me.com>
* revert autoformatting issue
* applied black autoformatting
Co-authored-by: Christian Clauss <cclauss@me.com>1 parent f754c0d commit 20e98fcCopy full SHA for 20e98fc
6 files changed
+9-6Lines changed: 9 additions & 6 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- ciphers
- graphs
- maths
- other
- scheduling
Expand file treeCollapse file tree
Open diff view settings
Collapse file
-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
218 | 218 | |
219 | 219 | |
220 | 220 | |
221 | | - |
222 | 221 | |
223 | 222 | |
224 | 223 | |
|
Collapse file
graphs/directed_and_undirected_(weighted)_graph.py
Copy file name to clipboardExpand all lines: graphs/directed_and_undirected_(weighted)_graph.py+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
226 | 226 | |
227 | 227 | |
228 | 228 | |
| 229 | + |
229 | 230 | |
230 | 231 | |
231 | 232 | |
| ||
453 | 454 | |
454 | 455 | |
455 | 456 | |
| 457 | + |
| 458 | + |
456 | 459 | |
457 | 460 | |
458 | 461 | |
|
Collapse file
graphs/minimum_spanning_tree_boruvka.py
Copy file name to clipboardExpand all lines: graphs/minimum_spanning_tree_boruvka.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
146 | 146 | |
147 | 147 | |
148 | 148 | |
| 149 | + |
149 | 150 | |
150 | 151 | |
151 | 152 | |
|
Collapse file
maths/chudnovsky_algorithm.py
Copy file name to clipboardExpand all lines: maths/chudnovsky_algorithm.py-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
48 | 47 | |
49 | 48 | |
50 | 49 | |
|
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
61 | 61 | |
62 | 62 | |
63 | 63 | |
64 | | - |
65 | | - |
| 64 | + |
66 | 65 | |
67 | 66 | |
68 | 67 | |
|
Collapse file
scheduling/shortest_job_first.py
Copy file name to clipboardExpand all lines: scheduling/shortest_job_first.py+4-2Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
15 | 14 | |
16 | 15 | |
17 | 16 | |
| ||
126 | 125 | |
127 | 126 | |
128 | 127 | |
| 128 | + |
129 | 129 | |
| 130 | + |
130 | 131 | |
131 | 132 | |
132 | 133 | |
133 | 134 | |
| 135 | + |
134 | 136 | |
135 | | - |
| 137 | + |
136 | 138 | |
137 | 139 | |
138 | 140 | |
|
0 commit comments