Skip to content

Commit 56c7295

Browse files
committed
Changed all if( to if (
1 parent 78c9899 commit 56c7295

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/editor/extended_python_generator.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export class OpModeDetails {
3232
annotations() : string{
3333
let code = '';
3434

35-
if(this.enabled){
35+
if (this.enabled){
3636
code += '@' + this.type + "\n";
37-
if(this.name){
37+
if (this.name){
3838
code += '@name("' + this.name + '")\n';
3939
}
40-
if(this.group){
40+
if (this.group){
4141
code += '@group("' + this.group + '")\n';
4242
}
4343
}
@@ -90,7 +90,7 @@ export class ExtendedPythonGenerator extends PythonGenerator {
9090
variableDefinitions += this.INDENT + "self.define_hardware(";
9191
variableDefinitions += this.getListOfPorts(true);
9292
variableDefinitions += ')\n';
93-
if(this.events && Object.keys(this.events).length > 0){
93+
if (this.events && Object.keys(this.events).length > 0){
9494
variableDefinitions += this.INDENT + "self.register_events()\n";
9595
}
9696
}
@@ -152,7 +152,7 @@ export class ExtendedPythonGenerator extends PythonGenerator {
152152
let returnString = ''
153153
let firstPort = startWithFirst;
154154
for (const port in this.ports) {
155-
if(!firstPort){
155+
if (!firstPort){
156156
returnString += ', ';
157157
}
158158
else{
@@ -188,7 +188,7 @@ export class ExtendedPythonGenerator extends PythonGenerator {
188188
this.classMethods = Object.create(null);
189189
this.ports = Object.create(null);
190190
code = classDef + this.prefixLines(classMethods.join('\n\n'), this.INDENT);
191-
if(annotations){
191+
if (annotations){
192192
code = annotations + code;
193193
}
194194
this.details = null;

0 commit comments

Comments
 (0)