Skip to content

Commit bf834dd

Browse files
committed
Update plugin.py
1 parent 4186bad commit bf834dd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

plugin/plugin.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,7 @@ async def start(self) -> None:
201201
async def update_libraries(self, libs: list[PartialLibrary]) -> None:
202202
cache: dict[str, Library] = {}
203203
for lib in libs:
204-
if lib.type == "auto":
205-
obj = await self.handle_auto_doctype(lib)
206-
if obj is None:
207-
await self.api.show_error_message(
208-
"rtfm", f"Could not figure out how to parse {lib.name!r}"
209-
)
210-
else:
211-
cache[lib.name] = obj
212-
else:
213-
cache[lib.name] = library_from_partial(lib)
204+
cache[lib.name] = library_from_partial(lib)
214205
self._library_cache = cache
215206
self.better_settings.libraries = [lib.to_partial() for lib in cache.values()]
216207
self.dump_settings()

0 commit comments

Comments
 (0)