Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
status: simplify template command selection
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed Nov 20, 2017
1 parent ede5f57 commit 8a9cea3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/dep/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,6 @@ func (cmd *statusCommand) Run(ctx *dep.Ctx, args []string) error {
return err
}

templateOut := false
if cmd.template != "" {
templateOut = true
}

var buf bytes.Buffer
var out outputter
switch {
Expand All @@ -256,7 +251,7 @@ func (cmd *statusCommand) Run(ctx *dep.Ctx, args []string) error {
o: cmd.output,
w: &buf,
}
case templateOut:
case cmd.template != "":
tmpl, err := template.New("status").Parse(cmd.template)
if err != nil {
return err
Expand Down

0 comments on commit 8a9cea3

Please sign in to comment.