Skip to content

Commit

Permalink
Merge pull request #386 from unhappychoice/misc/obeyRubocop
Browse files Browse the repository at this point in the history
👕 Obey Rubocop
  • Loading branch information
unhappychoice authored Aug 19, 2023
2 parents 857e32d + 1e6aed0 commit 112cc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/terminal_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def encode_url(url)
end

def encode(file)
if ENV['TERM_PROGRAM'] == 'iTerm.app'
if ENV.fetch('TERM_PROGRAM', nil) == 'iTerm.app'
encode_for_iterm2(file)
elsif which 'img2sixel'
encode_for_libsixel(file)
Expand Down

0 comments on commit 112cc15

Please sign in to comment.