Remove references to unused Docker variable

This commit is contained in:
James Cole
2019-10-10 20:36:55 +02:00
parent de19bfe448
commit 22f63fd951
7 changed files with 1 additions and 25 deletions

View File

@@ -53,8 +53,6 @@ class Range
// set more view variables:
$this->configureList();
// flash a big fat warning when users use SQLite in Docker
$this->loseItAll($request);
}
return $next($request);
@@ -104,22 +102,6 @@ class Range
app('view')->share('defaultCurrency', $defaultCurrency);
}
/**
* Error when sqlite in docker.
*
* @param Request $request
*/
private function loseItAll(Request $request): void
{
if ('sqlite' === config('database.default') && true === config('firefly.is_docker')) {
// @codeCoverageIgnoreStart
$request->session()->flash(
'error', 'You seem to be using SQLite in a Docker container. Don\'t do this. If the container restarts all your data will be gone.'
);
// @codeCoverageIgnoreEnd
}
}
/**
* Set the range for the current view.
*/