summaryrefslogtreecommitdiff
path: root/lib/config/utils.js
blob: 11bbd8cb6d049d01b8af91b7d81c6013c7af9cad (plain)
1
2
3
4
5
6
7
8
'use strict'

exports.toBooleanConfig = function toBooleanConfig (configValue) {
  if (configValue && typeof configValue === 'string') {
    return (configValue === 'true')
  }
  return configValue
}