resolve lint issues
This commit is contained in:
parent
10f06e6434
commit
08e707aa26
@ -278,8 +278,6 @@ func sanitizeEvent(orig models.Eventable) (models.Eventable, error) {
|
|||||||
newEvent.SetIsDraft(nil)
|
newEvent.SetIsDraft(nil)
|
||||||
newEvent.SetAdditionalData(orig.GetAdditionalData())
|
newEvent.SetAdditionalData(orig.GetAdditionalData())
|
||||||
|
|
||||||
// TODO #2428 (dadam39): re-apply nested attachments for itemAttachments
|
|
||||||
// Upstream: https://github.com/microsoft/kiota-serialization-json-go/issues/61
|
|
||||||
attachments, err := sanitizeAttachments(orig.GetAttachments())
|
attachments, err := sanitizeAttachments(orig.GetAttachments())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -291,15 +289,13 @@ func sanitizeEvent(orig models.Eventable) (models.Eventable, error) {
|
|||||||
|
|
||||||
func sanitizeMessage(orig models.Messageable) (models.Messageable, error) {
|
func sanitizeMessage(orig models.Messageable) (models.Messageable, error) {
|
||||||
message := toMessage(orig)
|
message := toMessage(orig)
|
||||||
|
|
||||||
// TODO #2428 (dadam39): re-apply nested attachments for itemAttachments
|
|
||||||
// Upstream: https://github.com/microsoft/kiota-serialization-json-go/issues/61
|
|
||||||
attachments, err := sanitizeAttachments(message.GetAttachments())
|
attachments, err := sanitizeAttachments(message.GetAttachments())
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
message.SetAttachments(attachments)
|
|
||||||
|
|
||||||
|
message.SetAttachments(attachments)
|
||||||
// The following fields are set to nil to
|
// The following fields are set to nil to
|
||||||
// not interfere with M365 guard checks.
|
// not interfere with M365 guard checks.
|
||||||
message.SetHasAttachments(nil)
|
message.SetHasAttachments(nil)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user