style cleanup
[blender.git] / source / blender / editors / io / io_collada.c
index 2004b18adf6ce6591f189420d0b8265e049a3143..d8bb372b9362bc135777658c1669769be232b75f 100644 (file)
@@ -319,14 +319,13 @@ static int wm_collada_import_exec(bContext *C, wmOperator *op)
        import_units = RNA_boolean_get(op->ptr, "import_units");
 
        RNA_string_get(op->ptr, "filepath", filename);
-       if (collada_import( C,
-                                               filename,
-                                               import_units))  {
-                       return OPERATOR_FINISHED;
+       if (collada_import(C, filename, import_units)) {
+               return OPERATOR_FINISHED;
        }
        else {
-       BKE_report(op->reports, RPT_ERROR, "Errors found during parsing COLLADA document (see console for details)");
-       return OPERATOR_CANCELLED;
+               BKE_report(op->reports, RPT_ERROR,
+                          "Errors found during parsing COLLADA document (see console for details)");
+               return OPERATOR_CANCELLED;
        }
 }