style: reformat with golines and enforce on commit
1 file changed, 10 insertions(+), 2 deletions(-)
changed files
M internal/importer/importer.go → internal/importer/importer.go
@@ -27,7 +27,11 @@ FetchIfNeeded(context.Context) (bool, error) Import(context.Context, *search.WriteIndex) (bool, error) } -func NewNixpkgsChannelImporter(source Source, dataPath string, logger *slog.Logger) *NixpkgsChannelImporter { +func NewNixpkgsChannelImporter( + source Source, + dataPath string, + logger *slog.Logger, +) *NixpkgsChannelImporter { indexPath := dataPath fullpath := path.Join(dataPath, source.Channel)@@ -58,7 +62,11 @@ Source Source Logger *slog.Logger } -func processOptions(parent context.Context, indexer *search.WriteIndex, conf *importConfig) (bool, error) { +func processOptions( + parent context.Context, + indexer *search.WriteIndex, + conf *importConfig, +) (bool, error) { ctx, cancel := context.WithTimeout(parent, conf.Source.ImportTimeout) defer cancel()