This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c0b62da Don't want trailing EOL
4c0b62da is described below

commit 4c0b62da6e4d25a2d6cc963d82b0c30d74b7ff9e
Author: Sebb <[email protected]>
AuthorDate: Wed Oct 2 23:39:49 2024 +0100

    Don't want trailing EOL
---
 lib/whimsy/asf/status.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/status.rb b/lib/whimsy/asf/status.rb
index bf4f078d..76871877 100644
--- a/lib/whimsy/asf/status.rb
+++ b/lib/whimsy/asf/status.rb
@@ -78,7 +78,7 @@ module Status
     path =  '/srv/whimsy/www/notice.txt'
     if File.exist? path
       File.open(path) do |fh|
-        return fh.readline, '/notice.txt'
+        return fh.readline.chomp, '/notice.txt'
       end
     end
     nil

Reply via email to