Skip to content

Commit

Permalink
Cleanup: comment out unreachable code (grafana#99723)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaniehingtgen authored Jan 29, 2025
1 parent 20f02ec commit b06f836
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/registry/apis/dashboard/legacy/sql_dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ func (a *dashboardSqlAccess) getRows(ctx context.Context, sql *legacysql.LegacyD
return nil, fmt.Errorf("execute template %q: %w", tmpl.Name(), err)
}
q := rawQuery
if false {
pretty := sqltemplate.RemoveEmptyLines(rawQuery)
fmt.Printf("DASHBOARD QUERY: %s [%+v] // %+v\n", pretty, req.GetArgs(), query)
}
// if false {
// pretty := sqltemplate.RemoveEmptyLines(rawQuery)
// fmt.Printf("DASHBOARD QUERY: %s [%+v] // %+v\n", pretty, req.GetArgs(), query)
// }

rows, err := sql.DB.GetSqlxSession().Query(ctx, q, req.GetArgs()...)
if err != nil {
Expand Down

0 comments on commit b06f836

Please sign in to comment.