Commit d9d47efc authored by James Fargher's avatar James Fargher

Use to_boolean helper for backup force env

parent dda57adf
...@@ -201,7 +201,7 @@ module Backup ...@@ -201,7 +201,7 @@ module Backup
end end
def build_db_task def build_db_task
force = ENV['force'] == 'yes' force = Gitlab::Utils.to_boolean(ENV['force'], default: false)
Database.new(progress, force: force) Database.new(progress, force: force)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment