From 65dc70b55396c3a00b70143fc84cc7d96cc25539 Mon Sep 17 00:00:00 2001 From: cswn Date: Thu, 16 Nov 2023 12:02:39 +0100 Subject: [PATCH] join: remove match in uumain and return exec result --- src/uu/join/src/join.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/uu/join/src/join.rs b/src/uu/join/src/join.rs index 966113887..423af983e 100644 --- a/src/uu/join/src/join.rs +++ b/src/uu/join/src/join.rs @@ -701,10 +701,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { return Err(USimpleError::new(1, "both files cannot be standard input")); } - match exec(file1, file2, settings) { - Ok(_) => Ok(()), - Err(e) => Err(USimpleError::new(1, format!("{e}"))), - } + exec(file1, file2, settings) } pub fn uu_app() -> Command {