Skip to content

Commit

Permalink
chore: fix None CompileFile for newfileForCompileFile
Browse files Browse the repository at this point in the history
  • Loading branch information
SolaWing committed Apr 14, 2024
1 parent 4a286a5 commit 1a28978
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compile_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def new_file(self, filename):
return module_files

def newfileForCompileFile(filename, compileFile, store) -> Optional[set[str]]:
if not compileFile: return None
info = compileFileInfoFromStore(compileFile, store)
return info.new_file(filename)

Expand Down

0 comments on commit 1a28978

Please sign in to comment.