mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
if … == nil
-> unless …
This commit is contained in:
parent
adff510cb6
commit
629e65127d
1 changed files with 3 additions and 3 deletions
|
@ -249,17 +249,17 @@ class Ameba::Config
|
||||||
{% end %}
|
{% end %}
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if properties["enabled".id] == nil %}
|
{% unless properties["enabled".id] %}
|
||||||
@[YAML::Field(key: "Enabled")]
|
@[YAML::Field(key: "Enabled")]
|
||||||
property? enabled = true
|
property? enabled = true
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if properties["severity".id] == nil %}
|
{% unless properties["severity".id] %}
|
||||||
@[YAML::Field(key: "Severity", converter: Ameba::SeverityYamlConverter)]
|
@[YAML::Field(key: "Severity", converter: Ameba::SeverityYamlConverter)]
|
||||||
property severity = {{ @type }}.default_severity
|
property severity = {{ @type }}.default_severity
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if properties["excluded".id] == nil %}
|
{% unless properties["excluded".id] %}
|
||||||
@[YAML::Field(key: "Excluded")]
|
@[YAML::Field(key: "Excluded")]
|
||||||
property excluded : Array(String)?
|
property excluded : Array(String)?
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
Loading…
Reference in a new issue