From 29b9397cc16ab9c6fad67328a1f030ca0dfa589a Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Fri, 18 Oct 2024 02:23:43 +0000 Subject: [PATCH] book: dfix deleted highlight.js --- book-lints/src/main.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/book-lints/src/main.rs b/book-lints/src/main.rs index 3c2a2192..cb93af32 100644 --- a/book-lints/src/main.rs +++ b/book-lints/src/main.rs @@ -142,14 +142,9 @@ fn highlight() { }); let highlight = std::fs::read_to_string("book-lints/highlight.js").unwrap(); - let existing = std::fs::read_to_string("book/highlight.js").unwrap(); let highlight = highlight.replace("$FLOW$", &format!("'{}'", flow.join("','"))); let highlight = highlight.replace("$COMMANDS$", &format!("'{}'", commands.join("','"))); - if highlight == existing { - return; - } - std::fs::write("book/highlight.js", highlight).unwrap(); }