commit 30ad71052cf2c1b8a7aa7cadc5ae6e631824748c
parent abc3da85bb7f454402f561acba85762859f91fd3
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Sat, 7 May 2016 00:48:58 +0200
sboconfig: open_read dies or returns $exit on fail
so no need to also check if it returned true.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;