Skip to content

Commit fec772d

Browse files
authored
Merge pull request #35 from jonnyhocks/34-project-update
Removed json parser
2 parents 65d3d6c + 14258cd commit fec772d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Commands/ProjectCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ public function updateProject(int $projectId, string $configurationPath)
198198
return new ResultData(ResultData::EXITCODE_ERROR);
199199
}
200200
if (str_ends_with($configurationPath, '.yaml')) {
201-
Project::updateYaml($projectId, $this->isValidJsonConfig($configurationPath));
201+
Project::updateYaml($projectId, $configurationPath);
202202
} else {
203-
Project::update($projectId, $this->isValidJsonConfig($configurationPath));
203+
Project::update($projectId, $data);
204204
}
205205

206206
$this->getIO()->writeln('Project <info>' . $projectId . '</info> updated.');

0 commit comments

Comments
 (0)