Skip to content

Commit 8ad9752

Browse files
committed
prefer Hash.key? to !Hash[].nil?
1 parent 628b126 commit 8ad9752

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ If you want unminified assets, you can:
293293
- pass a `debug` argument to the rake task, i.e. `rails tailwindcss:build[debug]` or `rails tailwindcss:watch[debug]`.
294294
- set an environment variable named `TAILWINDCSS_DEBUG` with a non-blank value
295295
296-
If both values are set, the environment variable will take precedence over the rake task argument.
296+
If both values are set, the environment variable will take precedence over the rake task argument.
297297
298298
### Live rebuild
299299

Diff for: lib/tailwindcss/commands.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Tailwindcss
44
module Commands
55
class << self
66
def compile_command(debug: false, **kwargs)
7-
debug = ENV["TAILWINDCSS_DEBUG"].present? unless ENV["TAILWINDCSS_DEBUG"].nil?
7+
debug = ENV["TAILWINDCSS_DEBUG"].present? if ENV.key?("TAILWINDCSS_DEBUG")
88
rails_root = defined?(Rails) ? Rails.root : Pathname.new(Dir.pwd)
99

1010
command = [

0 commit comments

Comments
 (0)