mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-01-09 05:17:35 +03:00
tools: code-style cleanup file_set_contents
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f291dcd493
commit
e4394777d2
@ -290,9 +290,9 @@ sub file_set_contents {
|
||||
} else {
|
||||
# Encode wide characters with print before passing them to syswrite
|
||||
my $unencoded_data = $data;
|
||||
open my $datafh, '>', \$data;
|
||||
print $datafh $unencoded_data;
|
||||
close $datafh;
|
||||
open(my $data_fh, '>', \$data) or die "failed to open in-memory variable - $!\n";
|
||||
print $data_fh $unencoded_data;
|
||||
close($data_fh);
|
||||
}
|
||||
|
||||
my $offset = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user