mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
remove duplicate adb.pull
This commit is contained in:
@@ -22,16 +22,12 @@ module.exports = syrup.serial()
|
||||
plugin.retrieve = function(file) {
|
||||
log.info('Retriving file %s', file)
|
||||
|
||||
return adb.pull(options.serial, file)
|
||||
.then(adbkit.util.readAll)
|
||||
.then(function(){
|
||||
return adb.stat(options.serial, file)
|
||||
})
|
||||
return adb.stat(options.serial, file)
|
||||
.then(function(stats){
|
||||
if (stats.size == 0){
|
||||
log.info(util.format("File %s is empty", file))
|
||||
}
|
||||
|
||||
|
||||
return adb.pull(options.serial, file)
|
||||
.then(function(transfer){
|
||||
// if this is a new store type, somethings need add to units/storage/plugins/
|
||||
|
||||
Reference in New Issue
Block a user