make the linter happy (#3394)
#### Type of change
- [x] 🧹 Tech Debt/Cleanup
This commit is contained in:
parent
97ca68fba1
commit
caea3ab6da
@ -128,15 +128,16 @@ func makeRestorePathsForEntry(
|
|||||||
// * Exchange Calendars (different folder handling)
|
// * Exchange Calendars (different folder handling)
|
||||||
// * Exchange Email/Contacts
|
// * Exchange Email/Contacts
|
||||||
// * OneDrive/SharePoint (needs drive information)
|
// * OneDrive/SharePoint (needs drive information)
|
||||||
if ent.Exchange != nil {
|
switch true {
|
||||||
|
case ent.Exchange != nil:
|
||||||
// TODO(ashmrtn): Eventually make Events have it's own function to handle
|
// TODO(ashmrtn): Eventually make Events have it's own function to handle
|
||||||
// setting the restore destination properly.
|
// setting the restore destination properly.
|
||||||
res.RestorePath, err = basicLocationPath(repoRef, locRef)
|
res.RestorePath, err = basicLocationPath(repoRef, locRef)
|
||||||
} else if ent.OneDrive != nil ||
|
case ent.OneDrive != nil ||
|
||||||
(ent.SharePoint != nil && ent.SharePoint.ItemType == details.SharePointLibrary) ||
|
(ent.SharePoint != nil && ent.SharePoint.ItemType == details.SharePointLibrary) ||
|
||||||
(ent.SharePoint != nil && ent.SharePoint.ItemType == details.OneDriveItem) {
|
(ent.SharePoint != nil && ent.SharePoint.ItemType == details.OneDriveItem):
|
||||||
res.RestorePath, err = drivePathMerge(ent, repoRef, locRef)
|
res.RestorePath, err = drivePathMerge(ent, repoRef, locRef)
|
||||||
} else {
|
default:
|
||||||
return res, clues.New("unknown entry type").WithClues(ctx)
|
return res, clues.New("unknown entry type").WithClues(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user