diff options
author | Rebecca Turner <rbt@sent.as> | 2024-03-27 10:16:16 -0700 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-03-29 22:57:40 -0700 |
commit | 2a98ba8b97c9ff52519633c32cf63716827d6e7c (patch) | |
tree | 7b64c40ad064183cc7bc7afc662890ea567f2136 /src/libutil | |
parent | a4f5bb951dbc6fa4ffa2bb56376b38f38b6e9154 (diff) |
Add `pre-commit` checks
The big ones here are `trim-trailing-whitespace` and `end-of-file-fixer`
(which makes sure that every file ends with exactly one newline
character).
Change-Id: Idca73b640883188f068f9903e013cf0d82aa1123
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/source-path.hh | 2 | ||||
-rw-r--r-- | src/libutil/thread-pool.cc | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/libutil/source-path.hh b/src/libutil/source-path.hh index 03cc998e3..4d4c51062 100644 --- a/src/libutil/source-path.hh +++ b/src/libutil/source-path.hh @@ -144,7 +144,7 @@ struct SourcePath * Resolve any symlinks in this `SourcePath` according to the * given resolution mode. * - * @param mode might only be a temporary solution for this. + * @param mode might only be a temporary solution for this. * See the discussion in https://github.com/NixOS/nix/pull/9985. */ SourcePath resolveSymlinks( diff --git a/src/libutil/thread-pool.cc b/src/libutil/thread-pool.cc index c6ffa75f2..a25769d9b 100644 --- a/src/libutil/thread-pool.cc +++ b/src/libutil/thread-pool.cc @@ -152,5 +152,3 @@ void ThreadPool::doWork(bool mainThread) } } - - |