Use helpers.FilePathSeparator const

This commit is contained in:
bep 2015-03-28 21:46:02 +01:00
parent 61a02c4df8
commit beaf5db3ff

View file

@ -93,7 +93,7 @@ func NewContent(cmd *cobra.Command, args []string) {
var kind string
// assume the first directory is the section (kind)
if strings.Contains(createpath[1:], string(filepath.Separator)) {
if strings.Contains(createpath[1:], helpers.FilePathSeparator) {
kind = helpers.GuessSection(createpath)
}