Skip to content

Commit

Permalink
Merge pull request #872 from Homebrew/srb-strict
Browse files Browse the repository at this point in the history
Bump `cmd` files to Sorbet `typed: strict`
  • Loading branch information
issyl0 authored Jan 10, 2025
2 parents 7a47b77 + 6332145 commit 1d3cf57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/services.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true
# typed: strict
# frozen_string_literal: true

homebrew_version = if HOMEBREW_VERSION.present?
Expand Down Expand Up @@ -63,6 +63,7 @@ class Services < AbstractCommand
named_args max: 2
end

sig { override.void }
def run
# pbpaste's exit status is a proxy for detecting the use of reattach-to-user-namespace
if ENV["HOMEBREW_TMUX"] && (File.exist?("/usr/bin/pbpaste") && !quiet_system("/usr/bin/pbpaste"))
Expand Down

0 comments on commit 1d3cf57

Please sign in to comment.