refactor: change naming of local variable to reflect intent

This commit is contained in:
Aleksey Kulikov 2021-09-30 19:10:43 +03:00
parent 5f7fdf4bd3
commit 9686d93935
3 changed files with 13 additions and 13 deletions

View file

@ -337,9 +337,9 @@ class DiffLine {
GitDiffLine get origin {
final originInt = _diffLinePointer.ref.origin;
late final GitDiffLine result;
for (var flag in GitDiffLine.values) {
if (originInt == flag.value) {
result = flag;
for (var type in GitDiffLine.values) {
if (originInt == type.value) {
result = type;
}
}
return result;