mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
Remove duplicate and redundant code
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
7ebaf6ec17
commit
1415e81eec
@ -203,8 +203,6 @@ driveName - 网盘名称,backup(备份盘),resource(资源盘)
|
|||||||
}
|
}
|
||||||
if policy == string(syncdrive.SyncPolicyExclusive) {
|
if policy == string(syncdrive.SyncPolicyExclusive) {
|
||||||
task.Policy = syncdrive.SyncPolicyExclusive
|
task.Policy = syncdrive.SyncPolicyExclusive
|
||||||
} else if policy == string(syncdrive.SyncPolicyIncrement) {
|
|
||||||
task.Policy = syncdrive.SyncPolicyIncrement
|
|
||||||
} else {
|
} else {
|
||||||
task.Policy = syncdrive.SyncPolicyIncrement
|
task.Policy = syncdrive.SyncPolicyIncrement
|
||||||
}
|
}
|
||||||
|
@ -245,8 +245,6 @@ func (t *SyncTask) Start() error {
|
|||||||
go t.scanLocalFile(t.ctx)
|
go t.scanLocalFile(t.ctx)
|
||||||
} else if t.Mode == Download {
|
} else if t.Mode == Download {
|
||||||
go t.scanPanFile(t.ctx)
|
go t.scanPanFile(t.ctx)
|
||||||
} else if t.Mode == SyncTwoWay {
|
|
||||||
return fmt.Errorf("异常:暂不支持该模式。")
|
|
||||||
} else {
|
} else {
|
||||||
return fmt.Errorf("异常:暂不支持该模式。")
|
return fmt.Errorf("异常:暂不支持该模式。")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user