diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-07 00:48:58 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-07 00:48:58 +0200 |
commit | 30ad71052cf2c1b8a7aa7cadc5ae6e631824748c (patch) | |
tree | fa91cd7000ae78958a1969b82798ad7cace9e1ef /sboconfig | |
parent | abc3da85bb7f454402f561acba85762859f91fd3 (diff) | |
download | sbotools2-30ad71052cf2c1b8a7aa7cadc5ae6e631824748c.tar.xz |
sboconfig: open_read dies or returns $exit on fail
so no need to also check if it returned true.
Diffstat (limited to 'sboconfig')
-rwxr-xr-x | sboconfig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |