better comment

This commit is contained in:
Bernard Xie 2023-02-14 17:44:26 -08:00
parent c561de4856
commit 948c176ece
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -364,7 +364,7 @@ func renderPDF(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, ske
} }
var currBoardPath []string var currBoardPath []string
// is root board // Root board doesn't have a name, so we use the output filename
if diagram.Name == "" { if diagram.Name == "" {
ext := filepath.Ext(outputPath) ext := filepath.Ext(outputPath)
trimmedPath := strings.TrimSuffix(outputPath, ext) trimmedPath := strings.TrimSuffix(outputPath, ext)