From de906ba3477261b4423c3b3f07de02062cf54e7d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 7 Apr 2020 18:12:54 +0200 Subject: [PATCH 1/1] inotify: trailing whitespaces: comment and drop now superfluous chomp Signed-off-by: Thomas Lamprecht --- src/PVE/INotify.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 871deda..1eaec21 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -923,8 +923,7 @@ sub __read_etc_network_interfaces { push @{$d->{families}}, $family; while (defined ($line = <$fh>)) { - chomp $line; - $line =~ s/\s+$//; + $line =~ s/\s+$//; # drop trailing whitespaces if ($line =~ m/^\s*#(.*?)\s*$/) { $f->{comments} = '' if !$f->{comments}; -- 2.39.2