Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jan 20, 2024
1 parent 4b6e522 commit 10081be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/dotenv/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(argv = [])
@filenames = []
@overload = false

super "Usage: dotenv [options]"
super("Usage: dotenv [options]")
separator ""

on("-f FILES", Array, "List of env files to parse") do |list|
Expand Down
2 changes: 1 addition & 1 deletion lib/dotenv/missing_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Error < StandardError; end

class MissingKeys < Error # :nodoc:
def initialize(keys)
key_word = "key#{keys.size > 1 ? "s" : ""}"
key_word = "key#{(keys.size > 1) ? "s" : ""}"
super("Missing required configuration #{key_word}: #{keys.inspect}")
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/dotenv/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def template_line(line)
var, value = line.split("=")
template = var.gsub(EXPORT_COMMAND, "")
is_a_comment = var.strip[0].eql?("#")
value.nil? || is_a_comment ? line : "#{var}=#{template}"
(value.nil? || is_a_comment) ? line : "#{var}=#{template}"
end
end
end

0 comments on commit 10081be

Please sign in to comment.