Skip to content

Commit

Permalink
internal: skip deleted files in clang-format hook and remove empty Pa…
Browse files Browse the repository at this point in the history
…pyrusQuest files (#2255)
  • Loading branch information
Pospelove authored Dec 6, 2024
1 parent 15ef8c9 commit f41f174
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion misc/git-hooks/clang-format-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const formatFiles = (files) => {

const filesToFormat = changedFiles
.split("\n")
.filter((file) => file.trim() !== "");
.filter((file) => file.trim() !== "")
.filter((file) => fs.existsSync(file)); // Do not try validate deleted files
formatFiles(filesToFormat);

filesToFormat.forEach((file) => execSync(`git add ${file}`));
Expand Down
Empty file removed skymp5-server/cpp/PapyrusQuest.cpp
Empty file.
1 change: 0 additions & 1 deletion skymp5-server/cpp/PapyrusQuest.h

This file was deleted.

0 comments on commit f41f174

Please sign in to comment.