Skip to content

Commit ff6901f

Browse files
committed
Review 2 changes
1 parent 65faffd commit ff6901f

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

templates/cli/lib/commands/deploy.js.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ const deployCollection = async ({ all, yes } = {}) => {
448448

449449
if (all) {
450450
checkDeployConditions(localConfig);
451-
console.log(localConfig.getCollections())
452451
if (localConfig.getCollections().length === 0) {
453452
throw new Error("No collections found in the current directory. Run `{{ language.params.executableName }} init collection` to fetch all your collections.");
454453
}

templates/cli/lib/config.js.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class Config {
1414
try {
1515
const file = fs.readFileSync(this.path).toString();
1616
this.data = JSONbig.parse(file);
17-
1817
} catch (e) {
1918
this.data = {};
2019
}

templates/cli/lib/utils.js.twig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function getAllFiles(folder) {
1515
}
1616

1717
const checkDeployConditions = (localConfig) => {
18-
1918
if (Object.keys(localConfig.data).length === 0) {
2019
throw new Error("No appwrite.json file found in the current directory. This command must be run in the folder holding your appwrite.json file. Please run this command again in the folder containing your appwrite.json file, or run appwrite init project.");
2120
}

0 commit comments

Comments
 (0)