mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Pop instead of reversing
This commit is contained in:
@@ -39,7 +39,7 @@ class AutoUpdater
|
||||
|
||||
try
|
||||
# Last line of output is the JSON details about the releases
|
||||
[json] = stdout.trim().split('\n').reverse()
|
||||
json = stdout.trim().split('\n').pop()
|
||||
update = JSON.parse(json)?.releasesToApply?.pop?()
|
||||
catch error
|
||||
error.stdout = stdout
|
||||
|
||||
Reference in New Issue
Block a user