From 30ad71052cf2c1b8a7aa7cadc5ae6e631824748c Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 7 May 2016 00:48:58 +0200 Subject: sboconfig: open_read dies or returns $exit on fail so no need to also check if it returned true. --- sboconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sboconfig b/sboconfig index 9c5483d..b0f9bb0 100755 --- a/sboconfig +++ b/sboconfig @@ -170,7 +170,7 @@ sub config_write { print {$conffh} $contents or return(); } else { # no config file, easiest case of all. - my ($fh, $exit) = open_fh($conf_file, '>') or return(); + my ($fh, $exit) = open_fh($conf_file, '>'); if ($exit) { warn $fh; exit $exit; -- cgit v1.2.3