mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed unassigned-out errors
This commit is contained in:
parent
43d8677598
commit
a4b1ff8a72
1 changed files with 5 additions and 0 deletions
|
@ -551,6 +551,7 @@ namespace System.Linq
|
|||
return true;
|
||||
}
|
||||
|
||||
val = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -591,6 +592,7 @@ namespace System.Linq
|
|||
internal static bool InternalLast<TEnum, TSource>(TEnum items, out TSource val)
|
||||
where TEnum : concrete, IEnumerator<TSource>
|
||||
{
|
||||
val = ?;
|
||||
var found = false;
|
||||
using (var iterator = Iterator.Wrap(items))
|
||||
{
|
||||
|
@ -602,6 +604,8 @@ namespace System.Linq
|
|||
val = temp;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
val = default;
|
||||
return found;
|
||||
}
|
||||
|
||||
|
@ -657,6 +661,7 @@ namespace System.Linq
|
|||
}
|
||||
}
|
||||
|
||||
val = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue