mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Disable false warning from Ameba
spec_helper_path is actually used by the ECR template.
This commit is contained in:
parent
62fd289b0f
commit
d31b8f4093
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ module Spectator::SpecHelpers
|
|||
# The *dir* is the directory of the file being written to.
|
||||
# This is needed to resolve the relative path to the spec_helper.cr file.
|
||||
private def write(io, dir)
|
||||
spec_helper_path = Path[@spec_helper_path].relative_to(dir)
|
||||
spec_helper_path = Path[@spec_helper_path].relative_to(dir) # ameba:disable Lint/UselessAssign
|
||||
ECR.embed(__DIR__ + "/example.ecr", io)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue