From 262d37ca757a134b504355315007fa2d862207ed Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Fri, 16 Oct 2015 08:35:39 +0100 Subject: [PATCH] Make progress type field name less ambiguous --- commands/command_prune.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/command_prune.go b/commands/command_prune.go index a47faf73..0fbe9c41 100644 --- a/commands/command_prune.go +++ b/commands/command_prune.go @@ -50,7 +50,7 @@ const ( // Progress from a sub-task of prune type PruneProgress struct { - Type PruneProgressType + ProgressType PruneProgressType Count int // Number of items done } type PruneProgressChan chan PruneProgress @@ -220,7 +220,7 @@ func pruneTaskDisplayProgress(progressChan PruneProgressChan, waitg *sync.WaitGr verifyCount := 0 var msg string for p := range progressChan { - switch p.Type { + switch p.ProgressType { case PruneProgressTypeLocal: localCount++ case PruneProgressTypeRetain: