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.
1 parent bd98d7b commit 9c934a9Copy full SHA for 9c934a9
bin/gist
@@ -203,7 +203,8 @@ begin
203
end
204
205
206
- puts Gist.multi_gist(files, options)
+ output = Gist.multi_gist(files, options)
207
+ puts output if output
208
209
210
rescue Gist::Error => e
lib/gist.rb
@@ -118,7 +118,7 @@ def multi_gist(files, options={})
118
119
120
121
- raise "All files were empty. No gist created." if json[:files].empty? && options[:skip_empty]
+ return if json[:files].empty? && options[:skip_empty]
122
123
existing_gist = options[:update].to_s.split("/").last
124
if options[:anonymous]
0 commit comments