@@ -234,36 +234,36 @@ def odisabled(method, replacement = nil,
234
234
odeprecated ( method , replacement , disable : true , disable_on :, disable_for_developers :, caller :)
235
235
end
236
236
237
- sig { params ( formula : T . any ( String , Formula ) ) . returns ( String ) }
238
- def pretty_installed ( formula )
237
+ sig { params ( string : String ) . returns ( String ) }
238
+ def pretty_installed ( string )
239
239
if !$stdout. tty?
240
- formula . to_s
240
+ string
241
241
elsif Homebrew ::EnvConfig . no_emoji?
242
- Formatter . success ( "#{ Tty . bold } #{ formula } (installed)#{ Tty . reset } " )
242
+ Formatter . success ( "#{ Tty . bold } #{ string } (installed)#{ Tty . reset } " )
243
243
else
244
- "#{ Tty . bold } #{ formula } #{ Formatter . success ( "✔" ) } #{ Tty . reset } "
244
+ "#{ Tty . bold } #{ string } #{ Formatter . success ( "✔" ) } #{ Tty . reset } "
245
245
end
246
246
end
247
247
248
- sig { params ( formula : T . any ( String , Formula ) ) . returns ( String ) }
249
- def pretty_outdated ( formula )
248
+ sig { params ( string : String ) . returns ( String ) }
249
+ def pretty_outdated ( string )
250
250
if !$stdout. tty?
251
- formula . to_s
251
+ string
252
252
elsif Homebrew ::EnvConfig . no_emoji?
253
- Formatter . error ( "#{ Tty . bold } #{ formula } (outdated)#{ Tty . reset } " )
253
+ Formatter . error ( "#{ Tty . bold } #{ string } (outdated)#{ Tty . reset } " )
254
254
else
255
- "#{ Tty . bold } #{ formula } #{ Formatter . warning ( "⚠" ) } #{ Tty . reset } "
255
+ "#{ Tty . bold } #{ string } #{ Formatter . warning ( "⚠" ) } #{ Tty . reset } "
256
256
end
257
257
end
258
258
259
- sig { params ( formula : T . any ( String , Formula ) ) . returns ( String ) }
260
- def pretty_uninstalled ( formula )
259
+ sig { params ( string : String ) . returns ( String ) }
260
+ def pretty_uninstalled ( string )
261
261
if !$stdout. tty?
262
- formula . to_s
262
+ string
263
263
elsif Homebrew ::EnvConfig . no_emoji?
264
- Formatter . error ( "#{ Tty . bold } #{ formula } (uninstalled)#{ Tty . reset } " )
264
+ Formatter . error ( "#{ Tty . bold } #{ string } (uninstalled)#{ Tty . reset } " )
265
265
else
266
- "#{ Tty . bold } #{ formula } #{ Formatter . error ( "✘" ) } #{ Tty . reset } "
266
+ "#{ Tty . bold } #{ string } #{ Formatter . error ( "✘" ) } #{ Tty . reset } "
267
267
end
268
268
end
269
269
0 commit comments