Skip to content

Commit

Permalink
remove the unneeded require "logstash/util" call, has great expectati…
Browse files Browse the repository at this point in the history
…ons that cannot be met if required too early.

fixes elastic#8096

Fixes elastic#8097
  • Loading branch information
Guy Boertje committed Aug 30, 2017
1 parent a15116c commit 2fc04c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions logstash-core/lib/logstash/util/password.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# encoding: utf-8
require "logstash/namespace"
require "logstash/util"

# This class exists to quietly wrap a password string so that, when printed or
# logged, you don't accidentally print the password itself.
class LogStash::Util::Password
module LogStash module Util class Password
attr_reader :value

public
Expand All @@ -21,5 +20,4 @@ def to_s
def inspect
return to_s
end # def inspect
end # class LogStash::Util::Password

end end end # class LogStash::Util::Password

0 comments on commit 2fc04c9

Please sign in to comment.