mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Address Ameba issues
This commit is contained in:
parent
a0e6d5c4e8
commit
e8afe5070b
2 changed files with 3 additions and 2 deletions
|
@ -38,7 +38,7 @@ module Spectator::DSL
|
||||||
what.is_a?(Path) ||
|
what.is_a?(Path) ||
|
||||||
what.is_a?(TypeNode) ||
|
what.is_a?(TypeNode) ||
|
||||||
what.is_a?(Union)) &&
|
what.is_a?(Union)) &&
|
||||||
(described_type = what.resolve?).is_a?(TypeNode) %}
|
what.resolve?.is_a?(TypeNode) %}
|
||||||
{{what.symbolize}}
|
{{what.symbolize}}
|
||||||
{% elsif what.is_a?(StringLiteral) ||
|
{% elsif what.is_a?(StringLiteral) ||
|
||||||
what.is_a?(StringInterpolation) ||
|
what.is_a?(StringInterpolation) ||
|
||||||
|
|
|
@ -54,7 +54,8 @@ module Spectator
|
||||||
|
|
||||||
# Add padding between the node names
|
# Add padding between the node names
|
||||||
# only if the names don't appear to be symbolic.
|
# only if the names don't appear to be symbolic.
|
||||||
io << ' ' unless !group.name? || # Skip blank group names (like the root group).
|
# Skip blank group names (like the root group).
|
||||||
|
io << ' ' unless !group.name? || # ameba:disable Style/NegatedConditionsInUnless
|
||||||
(group.name?.is_a?(Symbol) && name.is_a?(String) &&
|
(group.name?.is_a?(Symbol) && name.is_a?(String) &&
|
||||||
(name.starts_with?('#') || name.starts_with?('.')))
|
(name.starts_with?('#') || name.starts_with?('.')))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue