normalize scraper behavior
This commit is contained in:
parent
91c37e35e5
commit
3fbbfa9423
6 changed files with 22 additions and 45 deletions
|
|
@ -18,12 +18,7 @@ function M.set_platform(platform)
|
|||
return false
|
||||
end
|
||||
|
||||
if state.get_platform() == platform then
|
||||
logger.log(('platform already set to %s'):format(platform))
|
||||
else
|
||||
state.set_platform(platform)
|
||||
logger.log(('platform set to %s'):format(platform))
|
||||
end
|
||||
state.set_platform(platform)
|
||||
|
||||
return true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue