Skip to content

Commit 1d36280

Browse files
authored
fix: avoid duplicate pages information (#265)
* fix: avoid duplicate pages information Use set and then convert back to list in order to avoid duplicate page message * fix: remove unecessary casting to list
1 parent b5bfe14 commit 1d36280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tldr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def get_platform() -> str:
209209

210210

211211
def get_platform_list() -> List[str]:
212-
platforms = ['common'] + list(OS_DIRECTORIES.values())
212+
platforms = ['common'] + list(set(OS_DIRECTORIES.values()))
213213
current_platform = get_platform()
214214
platforms.remove(current_platform)
215215
platforms.insert(0, current_platform)

0 commit comments

Comments
 (0)