Skip to content

Commit fb8933d

Browse files
committed
Restrict the scope of SENDMAIL
1 parent e34aa58 commit fb8933d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/commit-email.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
require "ostruct"
55
require "nkf"
66

7-
SENDMAIL = "/usr/sbin/sendmail"
8-
97
CommitEmailInfo = Struct.new(
108
:author,
119
:author_email,
@@ -149,6 +147,9 @@ def with_gitenv
149147

150148
CommitEmail = Module.new
151149
class << CommitEmail
150+
SENDMAIL = '/usr/sbin/sendmail'
151+
private_constant :SENDMAIL
152+
152153
def parse(args)
153154
options = OpenStruct.new
154155
options.to = []

0 commit comments

Comments
 (0)