Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
GOODBOY008 committed Jul 27, 2024
1 parent ec1d033 commit dc1fc86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public RestResponse verifySchema(String path) {
error = "Cannot use the root directory for checkpoints.";
}
if (error != null) {
restResponse = RestResponse.error(ResponseCode.CODE_FAIL,error,false);
restResponse = RestResponse.error(ResponseCode.CODE_FAIL, error, false);
}
return restResponse;
}
Expand All @@ -287,7 +287,7 @@ public RestResponse checkSavepointPath(Application app) throws Exception {
if (error == null) {
return RestResponse.success(true);
}
return RestResponse.error(ResponseCode.CODE_FAIL,error,false);
return RestResponse.error(ResponseCode.CODE_FAIL, error, false);
}

@Permission(app = "#id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
};
if (unref(isUpdate)) Object.assign(params, { id: model?.id });
const res = await fetchCheckYarnQueue(params);
if (res.code === ResultEnum.SUCCESS) {
if (res) {
return Promise.resolve();
} else {
return Promise.reject(res.message);
Expand Down

0 comments on commit dc1fc86

Please sign in to comment.