mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Use Array.Empty instead
This commit is contained in:
parent
a58cb7cb3a
commit
e6861b1cff
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
@ -67,7 +68,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
|
||||||
// this may change or go away
|
// this may change or go away
|
||||||
if (string.IsNullOrEmpty(this.text))
|
if (string.IsNullOrEmpty(this.text))
|
||||||
{
|
{
|
||||||
return new byte[] { };
|
return Array.Empty<byte>();
|
||||||
}
|
}
|
||||||
|
|
||||||
return Encoding.UTF8.GetBytes(this.text);
|
return Encoding.UTF8.GetBytes(this.text);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue