Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed May 23, 2024
1 parent b6fb6ed commit a357a23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions OpenDreamClient/Resources/ResourceTypes/DMIResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace OpenDreamClient.Resources.ResourceTypes;

public sealed class DMIResource : DreamResource {
private static readonly byte[] _pngHeader = { 0x89, 0x50, 0x4E, 0x47, 0xD, 0xA, 0x1A, 0xA };
private static readonly byte[] PngHeader = [0x89, 0x50, 0x4E, 0x47, 0xD, 0xA, 0x1A, 0xA];

public Texture Texture;
public Vector2i IconSize;
Expand Down Expand Up @@ -55,10 +55,10 @@ private void ProcessDMIData() {
}

private bool IsValidPNG() {
if (Data.Length < _pngHeader.Length) return false;
if (Data.Length < PngHeader.Length) return false;

for (int i=0; i<_pngHeader.Length; i++) {
if (Data[i] != _pngHeader[i]) return false;
for (int i=0; i<PngHeader.Length; i++) {
if (Data[i] != PngHeader[i]) return false;
}

return true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Lidgren.Network;
using Robust.Shared.Network;
using Robust.Shared.Serialization;
Expand Down

0 comments on commit a357a23

Please sign in to comment.