Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Eti Ijeoma <ijayeti@gmail.com>
  • Loading branch information
Aijeyomah committed Sep 23, 2024
1 parent 2f0d684 commit b7ddf27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesheryctl/internal/cli/root/registry/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func InvokeGenerationFromSheet(wg *sync.WaitGroup) error {

go func() {
utils.ProcessModelToComponentsMap(componentCSVHelper.Components)
utils.VerifyandUpdateSpreadsheet(spreadsheeetCred, &wgForSpreadsheetUpdate, srv, spreadsheeetChan, spreadsheeetID, modelCSVFilePath, componentCSVFilePath) // write another for csv
utils.VerifyandUpdateSpreadsheet(spreadsheeetCred, &wgForSpreadsheetUpdate, srv, spreadsheeetChan, spreadsheeetID, modelCSVFilePath, componentCSVFilePath)
}()
// Iterate models from the spreadsheet
for _, model := range modelCSVHelper.Models {
Expand Down Expand Up @@ -571,7 +571,6 @@ func getCSVHeader(filePath string) (headers, secondRow []string, err error) {

reader := csv.NewReader(file)
headers, err = reader.Read() // Read the first line
// log.Println("Logging messages:", headers)

if err != nil {
return headers, secondRow, err
Expand Down

0 comments on commit b7ddf27

Please sign in to comment.