We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 627ac48 + a017df6 commit 04ffbefCopy full SHA for 04ffbef
lib/gist.rb
@@ -220,12 +220,11 @@ def auth
220
# gist.extension - string
221
def defaults
222
extension = config("gist.extension")
223
- extension = nil if extension && extension.empty?
224
225
return {
226
"private" => config("gist.private"),
227
"browse" => config("gist.browse"),
228
- "extension" => extension,
+ "extension" => extension
229
}
230
end
231
@@ -237,7 +236,7 @@ def defaults
237
236
# return something useful or nil
238
def config(key)
239
env_key = ENV[key.upcase.gsub(/\./, '_')]
240
- return env_key if env_key and not env_key.empty?
+ return env_key if env_key and not env_key.strip.empty?
241
242
str_to_bool `git config --global #{key}`.strip
243
0 commit comments