From e9ef8eb69de03be383783a7020c4ebb35f900dd8 Mon Sep 17 00:00:00 2001 From: Vaibhav Kamra Date: Tue, 7 Mar 2023 19:13:08 -0800 Subject: [PATCH] Fix lint --- src/internal/connector/onedrive/item.go | 48 ++++++++++++------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/internal/connector/onedrive/item.go b/src/internal/connector/onedrive/item.go index 0c33c0111..28c5f674f 100644 --- a/src/internal/connector/onedrive/item.go +++ b/src/internal/connector/onedrive/item.go @@ -405,33 +405,33 @@ func constructWebURL(adtl map[string]any) string { return url } -func fetchParentReference( - ctx context.Context, - service graph.Servicer, - orig models.ItemReferenceable, -) (models.ItemReferenceable, error) { - if orig == nil || service == nil || ptr.Val(orig.GetName()) != "" { - return orig, nil - } +// func fetchParentReference( +// ctx context.Context, +// service graph.Servicer, +// orig models.ItemReferenceable, +// ) (models.ItemReferenceable, error) { +// if orig == nil || service == nil || ptr.Val(orig.GetName()) != "" { +// return orig, nil +// } - options := &msdrives.DriveItemRequestBuilderGetRequestConfiguration{ - QueryParameters: &msdrives.DriveItemRequestBuilderGetQueryParameters{ - Select: []string{"name"}, - }, - } +// options := &msdrives.DriveItemRequestBuilderGetRequestConfiguration{ +// QueryParameters: &msdrives.DriveItemRequestBuilderGetQueryParameters{ +// Select: []string{"name"}, +// }, +// } - driveID := ptr.Val(orig.GetDriveId()) +// driveID := ptr.Val(orig.GetDriveId()) - if driveID == "" { - return orig, nil - } +// if driveID == "" { +// return orig, nil +// } - drive, err := service.Client().DrivesById(driveID).Get(ctx, options) - if err != nil { - return nil, clues.Stack(err).WithClues(ctx).With(graph.ErrData(err)...) - } +// drive, err := service.Client().DrivesById(driveID).Get(ctx, options) +// if err != nil { +// return nil, graph.Stack(ctx, err) +// } - orig.SetName(drive.GetName()) +// orig.SetName(drive.GetName()) - return orig, nil -} +// return orig, nil +// }