Remove unnecessary T.let

This commit is contained in:
Douglas Eichelberger 2023-03-31 08:38:02 -07:00
parent d1dfce578c
commit 7dcabd466e

View File

@ -54,7 +54,7 @@ module Homebrew
start_commit = T.let("", T.untyped)
end_commit = "HEAD"
cd HOMEBREW_REPOSITORY do
start_commit = if (commit = T.let(args.commit, T.nilable(String)))
start_commit = if (commit = args.commit)
commit
elsif (date = args.before)
Utils.popen_read("git", "rev-list", "-n1", "--before=#{date}", "origin/master").chomp