From e2dc5034d3a79415d4f624c662f220d9d0021f21 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 6 Mar 2020 23:51:07 +0100 Subject: [PATCH] restic/file: Use FileType for all File constants The data type of a variable is only carried on when using iota. --- internal/restic/file.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/restic/file.go b/internal/restic/file.go index 86b375192..7e32f09aa 100644 --- a/internal/restic/file.go +++ b/internal/restic/file.go @@ -12,11 +12,11 @@ type FileType string // These are the different data types a backend can store. const ( PackFile FileType = "data" // use data, as packs are stored under /data in repo - KeyFile = "key" - LockFile = "lock" - SnapshotFile = "snapshot" - IndexFile = "index" - ConfigFile = "config" + KeyFile FileType = "key" + LockFile FileType = "lock" + SnapshotFile FileType = "snapshot" + IndexFile FileType = "index" + ConfigFile FileType = "config" ) // Handle is used to store and access data in a backend.