Skip to content

Commit 38ad57b

Browse files
jmakarjsvd
authored andcommitted
remove (missing function) jruby check when opening fifos
1 parent 9317d03 commit 38ad57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/file.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def open(path)
276276

277277
# work around a bug opening fifos (bug JRUBY-6280)
278278
stat = File.stat(path) rescue nil
279-
if stat && stat.ftype == "fifo" && LogStash::Environment.jruby?
279+
if stat && stat.ftype == "fifo"
280280
fd = java.io.FileWriter.new(java.io.File.new(path))
281281
else
282282
if @file_mode != -1

0 commit comments

Comments
 (0)