Skip to content

Commit

Permalink
public import
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Nov 29, 2018
1 parent 450a5f5 commit 23cbd08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/describer.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ func NewImportDescriber(im jwt.Import) *ImportDescriber {
}

func (i *ImportDescriber) Brief(table *tablewriter.Table) {
if i.Token == "" {
table.AddRow(strings.Title(i.Type.String()), string(i.Subject), string(i.To), "")
}
expiration := ""
ac, err := i.LoadActivation()
if err != nil {
Expand All @@ -179,7 +182,7 @@ func (i *ImportDescriber) Brief(table *tablewriter.Table) {
}

func (i *ImportDescriber) IsRemoteImport() bool {
if url, err := url.Parse(i.Token); err == nil && url.Scheme != "" {
if u, err := url.Parse(i.Token); err == nil && u.Scheme != "" {
return true
}
return false
Expand Down

0 comments on commit 23cbd08

Please sign in to comment.