INNER CODE UNIT · Rust

in

Drew-Alleman/DataSurgeon · src/plugins/mod.rs:279

    for i in (0..existing_plugins.len()).rev() {
        let normalized_url = normalize_url(&url);
        let plugin_url = normalize_url(&existing_plugins[i].source_url);
        if plugin_url == normalized_url {
            // Remove the plugin
            existing_plugins.remove(i);
            removed = true;
        }
    }

    if removed {
        // Save the updated plugins back to the plugins.json file
        let plugin_file_path = match find_plugin_file() {
            Some(path) => path,
            None => {
                println!("[-] Error: {}", FAILED_TO_LOCATE);
                std::process::exit(1);
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…