mirror of
https://github.com/rclone/rclone.git
synced 2026-01-03 17:13:18 +00:00
build: fix gocritic lint issue elseif
This commit is contained in:
committed by
Nick Craig-Wood
parent
4454ed9d3b
commit
e82b5b11af
@@ -358,10 +358,8 @@ func (dc *DirCache) RootParentID(ctx context.Context, create bool) (ID string, e
|
||||
return "", err
|
||||
}
|
||||
dc.rootParentID = rootParentID
|
||||
} else {
|
||||
if dc.rootID == dc.trueRootID {
|
||||
return "", errors.New("is root directory")
|
||||
}
|
||||
} else if dc.rootID == dc.trueRootID {
|
||||
return "", errors.New("is root directory")
|
||||
}
|
||||
if dc.rootParentID == "" {
|
||||
return "", errors.New("internal error: didn't find rootParentID")
|
||||
|
||||
Reference in New Issue
Block a user