const _ = require('lodash');

module.exports = function parseSectionName(sectionName, name) {
  const ret = sectionName + name;

  // Root exception (/)
  return ret.length > 1 ? _.trimStart(ret, '/') : ret;
};

const _ = require('lodash');

module.exports = function parseSectionName(sectionName, name = '') {
  const ret = sectionName + name;

  // Root exception (/)
  return ret.length > 1 ? _.trimStart(ret, '/') : ret;
};

Set default value for `parseSectionName` name
fix: Set default value for `parseSectionName` name

Otherwise this can lead to concat with `undefined` which results in
`undefined`. This needs better tests.
