Skip to content

Commit 1abe33f

Browse files
committed
OCD
1 parent 27e70c8 commit 1abe33f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/tfobj.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class TFAzureResource {
1313
const self = this.originalJSON;
1414
const startTF = `resource "${this.type}" "${self.name}" {`
1515
const endTF = `\n}`
16-
1716
const tfObject = [];
1817

1918
delete self.id;
@@ -50,9 +49,7 @@ class TFAzureResource {
5049
else tfObject.push(`${property} = `);
5150

5251
if(type == 'array') tfObject.push(`[${value}]`);
53-
5452
if(type == 'string') tfObject.push(`"${value}"`);
55-
5653
if(type == 'number') tfObject.push(`${value}`);
5754
}
5855
}
@@ -67,11 +64,10 @@ class TFAzureResource {
6764
const data = this.toTF();
6865

6966
if(!fs.existsSync(dir)) fs.mkdirSync(dir);
70-
7167

7268
fs.writeFile(dir + `/${this.type}.${this.name}.tf`, data, opts, (err) => {
73-
if(err) reject(err)
74-
else resolve(data)
69+
if(err) reject(err)
70+
else resolve(data)
7571
})
7672
});
7773
}

0 commit comments

Comments
 (0)