diff --git a/distribusi.go b/distribusi.go index 4061ce5..a84799c 100644 --- a/distribusi.go +++ b/distribusi.go @@ -558,17 +558,11 @@ func getHref(c *cli.Context, fpath string, mtype string) (bool, string, error) { href = fmt.Sprintf("
%s
", trimFinalNewline(fcontents)) } } else if ftype == "image" { - var caption string - - exifCaption, err := getCaption(c, fpath) + caption, err := getCaption(c, fpath) if err != nil { return unknown, href, nil } - if exifCaption != "" { - caption = exifCaption - } - if stype == "gif" { href = fmt.Sprintf("
%s
", fname, stype, fname, caption) } else {