Skip to content

Commit

Permalink
fix linting (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis authored Oct 27, 2023
1 parent 8d1368f commit 0e8ac72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pipeline/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,17 +312,17 @@ func getDDL(db *sql.DB, dataSourceType DataSourceType, dataSourceName string) (s

databaseName := dataSourceNameParts[len(dataSourceNameParts)-1]
return getMySQLSchema(db, databaseName)
} else {
return "", fmt.Errorf("unsupported datasource %s", dataSourceType)
}

return "", fmt.Errorf("unsupported datasource %s", dataSourceType)
}

func getPromptTemplate(dataSourceType DataSourceType) (string, error) {
if dataSourceType == DataSourceSqlite {
return dataSourceTypePromptTemplate[DataSourceSqlite], nil
} else if dataSourceType == DataSourceMySQL {
return dataSourceTypePromptTemplate[DataSourceMySQL], nil
} else {
return "", fmt.Errorf("unsupported database scheme %s", dataSourceType)
}

return "", fmt.Errorf("unsupported database scheme %s", dataSourceType)
}

0 comments on commit 0e8ac72

Please sign in to comment.