Skip to content

Commit

Permalink
fix: git failure
Browse files Browse the repository at this point in the history
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
  • Loading branch information
virtual-designer committed Aug 28, 2024
1 parent 8442162 commit 459cc7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31792,7 +31792,7 @@ class GitClient {
});
return new Promise((resolve, reject) => {
process.on("exit", (code) => {
if (code !== null || code !== 0) {
if (code !== null && code !== 0) {
console.log("Failed to execute git command (Exit code " +
code +
"): ");
Expand Down
2 changes: 1 addition & 1 deletion src/GitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class GitClient implements AsyncDisposable {

return new Promise<string>((resolve, reject) => {
process.on("exit", (code) => {
if (code !== null || code !== 0) {
if (code !== null && code !== 0) {
console.log(
"Failed to execute git command (Exit code " +
code +
Expand Down

0 comments on commit 459cc7b

Please sign in to comment.