aboutsummaryrefslogtreecommitdiff
path: root/sboconfig
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-05-30 13:52:54 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-05-30 13:52:54 -0500
commit31ae07b262666c3ab36eeb581a599e7c549ea9a0 (patch)
treeafeb92fcc0afde8ea7bcc03d7bc8063d719a328c /sboconfig
parent18837e7ff419f34327606e8d2bc0ceaf1989aea0 (diff)
downloadsbotools2-31ae07b262666c3ab36eeb581a599e7c549ea9a0.tar.xz
remove unneeded parens in 'close ()' bits
Diffstat (limited to 'sboconfig')
-rwxr-xr-xsboconfig6
1 files changed, 3 insertions, 3 deletions
diff --git a/sboconfig b/sboconfig
index ab8961e..b3260d3 100755
--- a/sboconfig
+++ b/sboconfig
@@ -96,7 +96,7 @@ sub config_write {
my ($fh, $filename) = make_temp_file ();
open my $reader, '<', $conf_file;
print {$fh} <$reader>;
- close ($fh);
+ close $fh;
# tie the file so that if $key is already there, we just change that
# line and untie it
tie my @temp, 'Tie::File', $filename;
@@ -114,14 +114,14 @@ sub config_write {
if ($has eq 'FALSE') {
open (my $writer, '>>', $filename);
print {$writer} "$key=$val\n";
- close ($writer);
+ close $writer;
}
move ($filename, $conf_file);
} else {
# no config file, easiest case of all.
open my $writer, '>', $conf_file;
print {$writer} "$key=$val\n";
- close ($writer);
+ close $writer;
}
}