瀏覽代碼

fix:remove duplicate code

Doge2077 7 月之前
父節點
當前提交
87440ba43c
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      magic_pdf/utils/office_to_pdf.py

+ 0 - 5
magic_pdf/utils/office_to_pdf.py

@@ -86,11 +86,6 @@ def get_soffice_command():
                 if os.path.exists(path):
                     return path
 
-            # Last attempt with which
-            soffice_path = shutil.which('soffice')
-            if soffice_path:
-                return soffice_path
-
             raise ConvertToPdfError(
                 "LibreOffice not found. Please install it:\n"
                 "  - Ubuntu/Debian: sudo apt-get install libreoffice\n"