Remove debug statements.

This commit is contained in:
Bart Kamphorst
2018-10-17 22:24:05 +02:00
parent 454b5e94dc
commit 825f43c429
-4
View File
@@ -286,18 +286,14 @@ module Precious
post '/delete/*' do
$stderr.puts "[DELETE] DELETE WAS CALLED"
forbid unless @allow_editing
wiki = wiki_new
filepath = params[:splat].first
$stderr.puts "[DELETE] for file #{filepath}"
unless filepath.nil?
commit = commit_message
commit[:message] = "Deleted #{filepath}"
$stderr.puts "[DELETE] About to call wiki.delete_file"
wiki.delete_file(filepath, commit)
end
$stderr.puts "[DELETE] dunzo"
redirect_to('/pages')
end