Skip to content

Commit ba00280

Browse files
aNOOBisTheGodrobot-piglet
authored andcommitted
Fix workflow dir
Fixed github workflows directory to run actions correctly ___ I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru --- <!-- ASSETS_OPTIMIZER BEGIN --> {% note info "Проверка на сжатие ассетов пройдена" %} Расчет произведен с использованием [коммита](https://nda.ya.ru/t/JJ9yZdgx7GmDxL {% endnote %} <!-- ASSETS_OPTIMIZER END --> Pull Request resolved: #25 commit_hash:c8cd7d5073c544f1508a1224b41f1d0aff83b550
1 parent bf778fb commit ba00280

File tree

3 files changed

+5
-59
lines changed

3 files changed

+5
-59
lines changed

.mapping.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
".":"flutter/pro/opensource",
44
"CONTRIBUTING.md":"flutter/pro/opensource/CONTRIBUTING.md",
55
"README.md":"flutter/pro/opensource/README.md",
6-
"yx_scope/.github/workflows/pr.yaml":"flutter/pro/opensource/yx_scope/.github/workflows/pr.yaml",
76
"yx_scope/.gitignore":"flutter/pro/opensource/yx_scope/.gitignore",
87
"yx_scope/AUTHORS":"flutter/pro/opensource/yx_scope/AUTHORS",
98
"yx_scope/CONTRIBUTING.md":"flutter/pro/opensource/yx_scope/CONTRIBUTING.md",

yx_scope/.github/workflows/pr.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

yx_scope/packages/yx_scope_linter/lib/src/resolved_yx_scope_result.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class ResolvedYXScopeResult {
4343
/// from [element]
4444
ClassDeclaration? classDeclarationByElement(Element element) {
4545
for (final unit in units) {
46-
final declaration = unit.declarations
46+
final declarations = unit.declarations
4747
.where((declaration) => declaration.declaredElement == element)
48-
.whereType<ClassDeclaration>()
49-
.firstOrNull;
50-
if (declaration != null) {
51-
return declaration;
48+
.whereType<ClassDeclaration>();
49+
if (declarations.isEmpty) {
50+
return null;
5251
}
52+
return declarations.first;
5353
}
5454
return null;
5555
}

0 commit comments

Comments
 (0)