Skip to content

Commit 21c5aca

Browse files
committed
fix: avoid duplicate pages information
Use set and then convert back to list in order to avoid duplicate page message
1 parent cb63ef4 commit 21c5aca

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
@@ -205,7 +205,7 @@ def get_platform() -> str:
205205

206206

207207
def get_platform_list() -> List[str]:
208-
platforms = ['common'] + list(OS_DIRECTORIES.values())
208+
platforms = ['common'] + list(set(list(OS_DIRECTORIES.values())))
209209
current_platform = get_platform()
210210
platforms.remove(current_platform)
211211
platforms.insert(0, current_platform)

0 commit comments

Comments
 (0)