Skip to content

Commit

Permalink
Lua code format - (Stylua)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 15, 2024
1 parent fdc3bc6 commit 94c077c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/scripts/lib/register_achievements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ function Player.addAchievementProgress(self, achievement, totalProgress)
end

local progressNumber = self:getStorageValue(storage)

Check warning on line 644 in data/scripts/lib/register_achievements.lua

View workflow job for this annotation

GitHub Actions / luacheck

[luacheck] data/scripts/lib/register_achievements.lua#L644

unused variable 'progressNumber'
Raw output
data/scripts/lib/register_achievements.lua:644:8: unused variable 'progressNumber'
local progressNumber self:kv():scoped("achievements"):get("progress")
local progressNumber

Check warning on line 645 in data/scripts/lib/register_achievements.lua

View workflow job for this annotation

GitHub Actions / luacheck

[luacheck] data/scripts/lib/register_achievements.lua#L645

variable 'progressNumber' is never set
Raw output
data/scripts/lib/register_achievements.lua:645:8: variable 'progressNumber' is never set

Check warning on line 645 in data/scripts/lib/register_achievements.lua

View workflow job for this annotation

GitHub Actions / luacheck

[luacheck] data/scripts/lib/register_achievements.lua#L645

variable 'progressNumber' was previously defined on line 644
Raw output
data/scripts/lib/register_achievements.lua:645:8: variable 'progressNumber' was previously defined on line 644
self:kv():scoped("achievements"):get("progress")
if progressNumber and progressNumber <= totalProgress then
if progressNumber == totalProgress then
self:addAchievement(foundAchievement.id)
Expand Down

0 comments on commit 94c077c

Please sign in to comment.