mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
testserver: don't allow starting of an empty remote
This commit is contained in:
@@ -118,6 +118,10 @@ func start(name string) error {
|
||||
// Start starts the named test server which can be stopped by the
|
||||
// function returned.
|
||||
func Start(remoteName string) (fn func(), err error) {
|
||||
if remoteName == "" {
|
||||
// don't start the local backend
|
||||
return func() {}, nil
|
||||
}
|
||||
var name string
|
||||
name, _, err = fspath.Parse(remoteName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user