mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 06:01:21 +00:00
Remove references to unused Docker variable
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user