From c4948d3da458f01fb8f7aaf4f845c87fd1dde027 Mon Sep 17 00:00:00 2001 From: Leandro Guedes Date: Tue, 20 Jul 2021 20:10:09 -0300 Subject: [PATCH] Removing an Unnecessary Condition --- src/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 47d1240..43fc3d2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,10 +12,6 @@ impl Config { pub fn new(mut args: env::Args) -> Result { args.next(); - if args.len() < 3 { - return Err("not enough arguments"); - } - let query = match args.next() { Some(arg) => arg, None => return Err("Didn't get a query string"),