Skip to content

Commit

Permalink
Removing an Unnecessary Condition
Browse files Browse the repository at this point in the history
  • Loading branch information
leanndroguedes committed Jul 20, 2021
1 parent 3b2623e commit c4948d3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ impl Config {
pub fn new(mut args: env::Args) -> Result<Config, &'static str> {
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"),
Expand Down

0 comments on commit c4948d3

Please sign in to comment.