aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfix-eol2
1 files changed, 1 insertions, 1 deletions
diff --git a/fix-eol b/fix-eol
index 39059a3..66c44ed 100755
--- a/fix-eol
+++ b/fix-eol
@@ -34,7 +34,7 @@ sub convert {
# process all file
my $out = File::Temp->new(DIR => '.', UNLINK => 0);
print $out $line;
- while (($line = <$in>) && defined $line) {
+ while (defined ($line = <$in>)) {
$line =~ s/\r\n$/\n/;
print $out $line;
}