rm push/pop
This commit is contained in:
6
link.cm
6
link.cm
@@ -208,11 +208,11 @@ Link.sync_all = function(shop) {
|
||||
// Validate target exists
|
||||
var link_target = resolve_link_target(target)
|
||||
if (!fd.is_dir(link_target)) {
|
||||
push(errors, canonical + ': target ' + link_target + ' does not exist')
|
||||
errors[] = canonical + ': target ' + link_target + ' does not exist'
|
||||
return
|
||||
}
|
||||
if (!fd.is_file(link_target + '/cell.toml')) {
|
||||
push(errors, canonical + ': target ' + link_target + ' is not a valid package')
|
||||
errors[] = canonical + ': target ' + link_target + ' is not a valid package'
|
||||
return
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ Link.sync_all = function(shop) {
|
||||
|
||||
count = count + 1
|
||||
} disruption {
|
||||
push(errors, canonical + ': sync failed')
|
||||
errors[] = canonical + ': sync failed'
|
||||
}
|
||||
_sync()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user