Skip to content

Commit 967e768

Browse files
committed
eslint
1 parent c919e3d commit 967e768

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/lib/pattern_graph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ PatternGraph.empty = function (version) {
311311
* @param {PatternGraph|Object} graphOrJson
312312
* @return {boolean}
313313
*/
314-
PatternGraph.checkVersion = function(graphOrJson) {
314+
PatternGraph.checkVersion = function (graphOrJson) {
315315
return graphOrJson.version === PATTERN_GRAPH_VERSION;
316316
};
317317

@@ -369,7 +369,7 @@ PatternGraph.loadFromFile = function (patternlab, file) {
369369

370370
const obj = fs.readJSONSync(jsonGraphFile);
371371
if (!PatternGraph.checkVersion(obj)) {
372-
return PatternGraph.empty(obj.version)
372+
return PatternGraph.empty(obj.version);
373373
}
374374
return this.fromJson(obj);
375375
};

core/lib/patternlab.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,16 @@ var patternlab_engine = function (config) {
514514
let patternsToBuild = patternlab.patterns;
515515

516516
let graphNeedsUpgrade = !PatternGraph.checkVersion(patternlab.graph);
517+
517518
// Incremental builds are enabled, but we cannot use them
518519
if (!deletePatternDir && graphNeedsUpgrade) {
519520
plutils.log.info("Due to an upgrade, a complete rebuild is required. " +
520521
"Incremental build is available again on the next run.");
522+
521523
// Ensure that the freshly built graph has the latest version again.
522524
patternlab.graph.upgradeVersion();
523525
}
526+
524527
//delete the contents of config.patterns.public before writing
525528
//Also if the serialized graph must be updated
526529
if (deletePatternDir || graphNeedsUpgrade) {

0 commit comments

Comments
 (0)