mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
libstore/local-store: fix linting warning about unused variable
(cherry picked from commit 05082ea1c5
)
This commit is contained in:
parent
4687dc99f7
commit
bc6e78402c
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ LocalStore::LocalStore(
|
||||||
else if (curSchema == 0) { /* new store */
|
else if (curSchema == 0) { /* new store */
|
||||||
curSchema = nixSchemaVersion;
|
curSchema = nixSchemaVersion;
|
||||||
openDB(*state, true);
|
openDB(*state, true);
|
||||||
writeFile(schemaPath, fmt("%1%", nixSchemaVersion), 0666, true);
|
writeFile(schemaPath, fmt("%1%", curSchema), 0666, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (curSchema < nixSchemaVersion) {
|
else if (curSchema < nixSchemaVersion) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue