From d83f9bd07b47c692d619a965134f95775813af51 Mon Sep 17 00:00:00 2001 From: Mahak Shah <55366357+ms5914@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:49:49 -0800 Subject: [PATCH] Removing unused path parameter The path parameter is not used in the function. --- solutions/system_design/social_graph/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/system_design/social_graph/README.md b/solutions/system_design/social_graph/README.md index f7dfd4ef..79f698be 100644 --- a/solutions/system_design/social_graph/README.md +++ b/solutions/system_design/social_graph/README.md @@ -190,7 +190,7 @@ class UserGraphService(object): # Reverse the list since we iterated backwards return path_ids[::-1] - def _shortest_path(self, source_key, dest_key, path): + def _shortest_path(self, source_key, dest_key): # Use the id to get the Person source = self.person(source_key) # Update our bfs queue