mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
clean of unnecessary checks, imports, calls (#7993)
This commit is contained in:
@@ -84,7 +84,7 @@ class Automaton:
|
||||
else:
|
||||
current_state = next_state
|
||||
for key in self.adlist[current_state]["output"]:
|
||||
if not (key in result):
|
||||
if key not in result:
|
||||
result[key] = []
|
||||
result[key].append(i - len(key) + 1)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user