From 10cb0a3c9086660d5c586e8dc5a53d51ae2271b8 Mon Sep 17 00:00:00 2001 From: Kyler Chin <7539174+kylerchin@users.noreply.github.com> Date: Sun, 7 Jan 2024 19:27:54 -0800 Subject: [PATCH] add underscores --- src/ingest_gtfs_schedule/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ingest_gtfs_schedule/main.rs b/src/ingest_gtfs_schedule/main.rs index 378d7617..e1aa515e 100644 --- a/src/ingest_gtfs_schedule/main.rs +++ b/src/ingest_gtfs_schedule/main.rs @@ -238,12 +238,12 @@ async fn main() -> Result<(), Box> { .unwrap() .get::("softinsert"); - let forcewipe = arguments::parse(std::env::args()) + let force_wipe = arguments::parse(std::env::args()) .unwrap() .get::("forcewipe") .unwrap_or_else(|| false); - if (startfresh.unwrap_or(false) && isprod.unwrap_or(false) && forcewipe) { + if (startfresh.unwrap_or(false) && is_prod.unwrap_or(false) && force_wipe) { panic!("Cannot wipe the prod server without --forcewipe true"); }