utils/user: Bump to Sorbet typed: strict
This commit is contained in:
parent
058688f239
commit
29a3ede4b1
@ -1,4 +1,4 @@
|
||||
# typed: true
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "delegate"
|
||||
@ -29,6 +29,6 @@ class User < SimpleDelegator
|
||||
pwuid = Etc.getpwuid(Process.euid)
|
||||
return if pwuid.nil?
|
||||
|
||||
@current = new(pwuid.name)
|
||||
@current = T.let(new(pwuid.name), T.nilable(T.attached_class))
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user