Minor optimization

This commit is contained in:
Nikolaj Olsson 2021-02-01 21:24:54 +01:00
parent dbae6931ab
commit bce18c4f55

View File

@ -101,9 +101,8 @@ namespace Nikse.SubtitleEdit.Core.Common
}
}
var result = new byte[bytearrayPosition];
Array.Copy(byteArray, 0, result, 0, bytearrayPosition);
return result;
Array.Resize(ref byteArray, bytearrayPosition);
return byteArray;
}
}
}