mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Style] Inline variable declaration
This commit is contained in:
@@ -549,8 +549,6 @@ namespace SabreTools.Library.Tools
|
||||
/// <returns>Tuple of multiplier to use on final size and fixed size string</returns>
|
||||
public static long GetSizeFromString(string sizestring)
|
||||
{
|
||||
long size = 0;
|
||||
|
||||
// Make sure the string is in lower case
|
||||
sizestring = sizestring.ToLowerInvariant();
|
||||
|
||||
@@ -601,7 +599,7 @@ namespace SabreTools.Library.Tools
|
||||
sizestring = sizestring.TrimEnd(new char[] { 'k', 'm', 'g', 't', 'p', 'i', 'b', ' ' });
|
||||
|
||||
// Now try to get the size from the string
|
||||
if (!Int64.TryParse(sizestring, out size))
|
||||
if (!Int64.TryParse(sizestring, out long size))
|
||||
{
|
||||
size = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user