Fix extreme edge case error logging where local file has no path

This commit is contained in:
Christian Rocha 2020-08-24 15:43:08 -04:00 committed by Christian Muehlhaeuser
commit 089b66f622

View file

@ -445,7 +445,7 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
_, exists := m.filesStashing[md.localPath]
if exists || (md.markdownType != localMarkdown) || md.localPath == "" {
if md.localPath == "" {
if md.markdownType == localMarkdown && md.localPath == "" {
log.Printf("refusing to load markdown; local path is empty: %#v", md)
}
break