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