Skip to content

Commit

Permalink
Remove redundant nil check on itemDetails.
Browse files Browse the repository at this point in the history
  • Loading branch information
amorgan-atlas-sys committed Jun 7, 2023
1 parent a53fc8b commit 4491eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Catalog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function GetMmsIds()

local itemDetails = catalogSearchForm.Browser:EvaluateScript([[document.getElementById("item-details").innerText;]]).Result;
local ids = {};
if itemDetails and itemDetails ~= nil then
if itemDetails then
ids = ExtractIds(itemDetails);
else
log:Debug("Element with ID 'item-details' not found.");
Expand Down

0 comments on commit 4491eb3

Please sign in to comment.