summaryrefslogtreecommitdiff
path: root/human.go
diff options
context:
space:
mode:
Diffstat (limited to 'human.go')
-rw-r--r--human.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/human.go b/human.go
index f9c5af4..1f7cdcf 100644
--- a/human.go
+++ b/human.go
@@ -110,11 +110,10 @@ func FormatDuration(d time.Duration) string {
}
func (d *Droplet) SprintHeader() string {
- header := fmt.Sprintf("%-3.3s %-9.9s %-20.20s", d.Current.State, d.Current.Hypervisor, d.Hostname)
-
if d.Current == nil {
d.Current = new(Current)
}
+ header := fmt.Sprintf("%-3.3s %-9.9s %-20.20s", d.Current.State, d.Current.Hypervisor, d.Hostname)
switch d.Current.State {
case DropletState_ON: