Weirdly formatted code from auto-formatter is studio: Is this a bug?

Hello! I was writing a metatable for my player saving system, but it keeps formatting my code weirdly.

Here’s my code:

local DSSManager = require(game.ServerScriptService.DataStoreManager)
local playerData = setmetatable({},
{
	__index =
		function(dataTable, player)
			if player then
			dataTable[player] = DSSManager.loadPlayerData(player)
			return dataTable[player]
		else
			return nil
		end
		end
})

return playerData

If yes I’ll file a bug report, because this is really ugly.

1 Like

It is very ugly yes but probably not a bug.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.