mirror of
https://github.com/DeterminateSystems/update-flake-lock.git
synced 2025-07-03 20:03:51 +03:00
Fix input validation
This commit is contained in:
parent
0c1dd1090d
commit
c7eb3f32c9
3 changed files with 3 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -94839,7 +94839,7 @@ var UpdateFlakeLockAction = class extends DetSysAction {
|
|||
}
|
||||
}
|
||||
validateInputs() {
|
||||
if (this.flakeDirs !== null && this.flakeDirs.length > 0 && this.pathToFlakeDir !== "") {
|
||||
if (this.flakeDirs !== null && this.flakeDirs.length > 0 && this.pathToFlakeDir !== null && this.pathToFlakeDir !== "") {
|
||||
throw new Error(
|
||||
"Both `path-to-flake-dir` and `flake-dirs` are set, whereas only one can be set"
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue