mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Small refactor for Setting method
This commit is contained in:
parent
2dede67ae9
commit
a9441521a4
|
@ -79,14 +79,11 @@ class Setting extends Model
|
|||
|
||||
public static function getDefaultEula()
|
||||
{
|
||||
|
||||
$Parsedown = new \Parsedown();
|
||||
if (Setting::getSettings()->default_eula_text) {
|
||||
return $Parsedown->text(e(Setting::getSettings()->default_eula_text));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue