Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test
  • Loading branch information
JohnnyMorganz committed Apr 11, 2022
commit e7c07158dbc6dc293a57970251c64dfa7289377a
11 changes: 11 additions & 0 deletions tests/snapshots/tests__luau@excess-parentheses.lua.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ self.mutationStore[mutationId] = (

local _name = debug.info(fn :: ((any) -> any), "n")

-- https://github.com/JohnnyMorganz/StyLua/issues/441
if string.len(string_) > (length :: number) then
return string_:sub(1, (length :: number) + 1) .. "…"
else
return string_
end

if fiber.actualStartTime ~= nil and (fiber.actualStartTime :: number) < 0 then
fiber.actualStartTime = now()
end