From f19ad052ea76f9aad6f76d6b07ce381d7d915f6b Mon Sep 17 00:00:00 2001 From: Adam Hughes <9903835+tri-adam@users.noreply.github.com> Date: Thu, 11 Jul 2024 20:54:43 +0000 Subject: [PATCH] refactor: use DeleteObjects to simplify code --- pkg/sif/testdata/TestUpdate/AddLayer.golden | Bin 16648 -> 16278 bytes .../testdata/TestUpdate/ReplaceLayers.golden | Bin 58295 -> 42629 bytes pkg/sif/update.go | 41 +++++------------- 3 files changed, 10 insertions(+), 31 deletions(-) diff --git a/pkg/sif/testdata/TestUpdate/AddLayer.golden b/pkg/sif/testdata/TestUpdate/AddLayer.golden index ca896742a18fa824afbc92eaae547e97a9140b10..7681233dce910164fa6427d3651766fe0ef1cd84 100644 GIT binary patch delta 8 PcmeBZVw_gLVVXSv5J3Z` delta 169 zcmWlTy$ZrG6h`qeTr+pD`SZ4eK8eFknrj1Xl{77al%kWX2%VgK0w2*h9=-$LS?0%m z^**<8CqQ)SdfI(* diff --git a/pkg/sif/testdata/TestUpdate/ReplaceLayers.golden b/pkg/sif/testdata/TestUpdate/ReplaceLayers.golden index 201ba9ceff963e802b5b5064dded53a7bd4562b5..0bc9aa06210e8a8bbd627930f4bca00b1cc48084 100644 GIT binary patch delta 9 QcmdmfoVoQZ(}vb%02izTu>b%7 delta 109 zcmZoY%e4JC^M=-Cn?H)1+f43Wx-iPZ$k0SbDJ3&KwYWsdN~t&_(a6-y$~@V?z#t{n zG%4A_*gVb1GQ}|2GSM{E+$