1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 18:30:05 +08:00

rm unused fn

This commit is contained in:
2020-02-03 00:38:09 +08:00
parent 0b52cda6ba
commit c1fb92449e
6 changed files with 9 additions and 25 deletions

View File

@@ -102,10 +102,10 @@ pub fn find_build_json_in_current() -> Option<String> {
pub fn find_build_json_in_parents() -> Option<String> {
let mut path = fs::canonicalize(".").ok()?;
let mut loop_count = 0usize;
let mut loop_count = 0_usize;
loop {
loop_count += 1usize;
if loop_count > 100usize {
loop_count += 1_usize;
if loop_count > 100_usize {
print_message(MessageType::ERROR, "Find build.json loop more than 100 loop!");
return None;
}