Skip to content

Commit

Permalink
Update files.luau
Browse files Browse the repository at this point in the history
  • Loading branch information
SnorlaxAssist authored Sep 25, 2023
1 parent f963a8a commit 4d4da22
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/serde/compression/files.luau
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ type Test = {
Target: string,
}

local isWindows = process.os == "windows";

local TESTS: { Test } = {
{
Format = "brotli",
Expand Down Expand Up @@ -39,11 +37,6 @@ for _, test in TESTS do
local source = fs.readFile(test.Source)
local target = fs.readFile(test.Target)

if isWindows then
-- Windows: CRLF -> LF
source = string.gsub(source, "\r\n", "\n", #source - 2);
end

local success, compressed = pcall(serde.compress, test.Format, source)
if not success then
stdio.ewrite(
Expand Down

0 comments on commit 4d4da22

Please sign in to comment.