From 35b1cdbc7cd32aab4aa9bf024981c413a824fa3d Mon Sep 17 00:00:00 2001
From: Anjan Kaur <anjankaur01.mkr@gmail.com>
Date: Wed, 2 May 2018 00:05:53 +0530
Subject: [PATCH] Fixing lint errors

---
 cli.js        | 4 ++--
 lib/schema.js | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/cli.js b/cli.js
index 55193e0..679ca00 100755
--- a/cli.js
+++ b/cli.js
@@ -90,8 +90,8 @@ if (target.isDirectory()) {
       files.push(entry.fullPath);
       try {
         ajv.addSchema(require(entry.fullPath), entry.fullPath);
-      }catch(e){
-        logger.error('Ajv processing error for schema at path %s',entry.fullPath);
+      } catch (e){
+        logger.error('Ajv processing error for schema at path %s', entry.fullPath);
         logger.error(e);
         process.exit(1);
       }
diff --git a/lib/schema.js b/lib/schema.js
index 4788076..90c7219 100644
--- a/lib/schema.js
+++ b/lib/schema.js
@@ -424,10 +424,10 @@ Schema.process = function(schemaMap, schemaPath, docDir, schemaDir, metaElements
           markdownWriter(schemaMap[schemaKey].filePath, object.mSchema, schemaPath, docDir, object.dep, docs),
           schemaWriter(schemaMap[schemaKey].filePath, object.wSchema, schemaPath, schemaDir) ]);
       }).catch(err => {
-          logger.error('Error occured in processing schema at path %s', sPath);
-          logger.error(err); // should we exit here or allow processing of other schemas?
-          process.exit(1);
-        });
+        logger.error('Error occured in processing schema at path %s', sPath);
+        logger.error(err); // should we exit here or allow processing of other schemas?
+        process.exit(1);
+      });
   }).then(result => {
     if (readme) {
       console.log('Output processed. Trying to make a README.md now');
-- 
GitLab