aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/asset/storage.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-08-29 14:08:54 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-08-29 16:57:19 +0200
commitdbf801b93d8e458a32a8e88d2bdd8de447338bbf (patch)
tree12d0c7cc4e8495bb97bda09619f4cef5581d8e31 /pkg/asset/storage.go
parentba6652b6b4e6148d4ab8ba583f0a88a48293130f (diff)
pkg/asset: return the proper error when a GCS object exists
The caller expects a FileExistsError error.
Diffstat (limited to 'pkg/asset/storage.go')
-rw-r--r--pkg/asset/storage.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/asset/storage.go b/pkg/asset/storage.go
index 5c7134fd0..e790732bd 100644
--- a/pkg/asset/storage.go
+++ b/pkg/asset/storage.go
@@ -192,8 +192,6 @@ func (e *FileExistsError) Error() string {
return fmt.Sprintf("asset exists: %s", e.Path)
}
-var ErrAssetExists = errors.New("the asset already exists")
-
const deletionEmbargo = time.Hour * 24 * 7
// Best way: convert download URLs to paths.