You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "mindlesscloud (via GitHub)" <gi...@apache.org> on 2023/02/28 02:05:11 UTC
[GitHub] [incubator-devlake] mindlesscloud commented on a diff in pull request #4522: feat: csv file extension check
mindlesscloud commented on code in PR #4522:
URL: https://github.com/apache/incubator-devlake/pull/4522#discussion_r1119501057
##########
backend/helpers/pluginhelper/csv_file_writer.go:
##########
@@ -35,8 +37,12 @@ type CsvFileWriter struct {
}
// NewCsvFileWriter create a `*CsvFileWriter` based on path to saving csv file
-func NewCsvFileWriter(csvPath string, fields []string) *CsvFileWriter {
+func NewCsvFileWriter(csvPath string, fields []string) (*CsvFileWriter, error) {
Review Comment:
There is a type `Error` defined in the package `github.com/apache/incubator-devlake/core/errors`, most of DevLake functions return this one instead of the normal `error`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org