mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-28 01:31:35 +08:00
update
This commit is contained in:
@@ -153,10 +153,12 @@ pub fn get_tool_package_secret() -> XResult<String> {
|
||||
let standard_config_object = json::parse(&standard_config_json)?;
|
||||
|
||||
let build_js_auth_token = &standard_config_object["build.js"]["auth_token"];
|
||||
|
||||
if build_js_auth_token.is_null() {
|
||||
return Err(new_box_error("Standard json#build.js#auth_token is null."));
|
||||
Err(new_box_error("Standard json#build.js#auth_token is null."))
|
||||
} else {
|
||||
Ok(build_js_auth_token.to_string())
|
||||
}
|
||||
Ok(build_js_auth_token.to_string())
|
||||
}
|
||||
|
||||
pub fn set_tool_package_secret(secret: &str) -> XResult<()> {
|
||||
|
||||
Reference in New Issue
Block a user