From 29a3ede4b16ce534927ddf80b3bf2cf6da054d89 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 10 Aug 2024 00:31:58 +0100 Subject: [PATCH] utils/user: Bump to Sorbet `typed: strict` --- Library/Homebrew/utils/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/user.rb b/Library/Homebrew/utils/user.rb index 09be3d7707..72339509f6 100644 --- a/Library/Homebrew/utils/user.rb +++ b/Library/Homebrew/utils/user.rb @@ -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