utils/user: Bump to Sorbet typed: strict

This commit is contained in:
Issy Long 2024-08-10 00:31:58 +01:00
parent 058688f239
commit 29a3ede4b1
No known key found for this signature in database

View File

@ -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