File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -146,20 +146,17 @@ struct RelativePathWithMetadata
146146
147147 RelativePathWithMetadata () = default ;
148148
149- explicit RelativePathWithMetadata (String relative_path_ , std::optional<ObjectMetadata> metadata_ = std::nullopt )
150- : relative_path(std::move(relative_path_ ))
149+ explicit RelativePathWithMetadata (String command_or_path , std::optional<ObjectMetadata> metadata_ = std::nullopt )
150+ : relative_path(std::move(command_or_path ))
151151 , metadata(std::move(metadata_))
152- {}
153- explicit RelativePathWithMetadata (const DataFileInfo & info, std::optional<ObjectMetadata> metadata_ = std::nullopt );
154-
155- explicit RelativePathWithMetadata (const String & task_string, std::optional<ObjectMetadata> metadata_ = std::nullopt )
156- : metadata(std::move(metadata_))
157- , command(task_string)
152+ , command(relative_path)
158153 {
159- if (! command.is_parsed ())
160- relative_path = task_string ;
154+ if (command.is_parsed ())
155+ relative_path = " " ;
161156 }
162157
158+ explicit RelativePathWithMetadata (const DataFileInfo & info, std::optional<ObjectMetadata> metadata_ = std::nullopt );
159+
163160 RelativePathWithMetadata (const RelativePathWithMetadata & other) = default ;
164161
165162 virtual ~RelativePathWithMetadata () = default ;
You can’t perform that action at this time.
0 commit comments