Skip to content

Commit 7ef1ed5

Browse files
committed
Tiny fixes to satisfy linter
1 parent 49d10f7 commit 7ef1ed5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

latextools/utils/analysis.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def tex_base_path(self, file_path):
159159
This is usually the folder of the tex root, but can change if
160160
the import package is used.
161161
Use this instead of the tex root path to implement functions
162-
like the \input command completion.
162+
like the \\input command completion.
163163
"""
164164
file_path = os.path.normpath(file_path)
165165
try:
@@ -341,7 +341,8 @@ def get_analysis(tex_root):
341341
raise TypeError("tex_root must be a string or view")
342342

343343
result = LocalCache(tex_root).cache("analysis", partial(analyze_document, tex_root))
344-
result._freeze()
344+
if result:
345+
result._freeze()
345346
return result
346347

347348

0 commit comments

Comments
 (0)