Skip to content

Commit

Permalink
refactor: reuse pid variable (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub authored Oct 17, 2023
1 parent a56b478 commit 0b57f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/integrated-benchmark/src/verdaccio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Drop for Verdaccio {
let pid = process.id();

eprintln!("info: Terminating verdaccio with the kill command (kill {pid})...");
match Command::new("kill").arg(process.id().to_string()).output() {
match Command::new("kill").arg(pid.to_string()).output() {
Err(error) => {
eprintln!("warn: Failed to terminate verdaccio with the kill command: {error}");
}
Expand Down

0 comments on commit 0b57f30

Please sign in to comment.