fix(toml): remove unsupported schema definition

This commit is contained in:
Jan De Dobbeleer 2024-08-09 11:31:15 +02:00 committed by Jan De Dobbeleer
parent f13eae852b
commit 39b7615aac

View file

@ -56,7 +56,6 @@ func (cfg *Config) Export(format string) string {
data := strings.Replace(result.String(), "{", prefix, 1)
return escapeGlyphs(data, cfg.MigrateGlyphs)
case TOML:
prefix := "#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json\n\n"
tomlEncoder := toml.NewEncoder(&result)
tomlEncoder.SetIndentTables(true)
@ -65,7 +64,7 @@ func (cfg *Config) Export(format string) string {
return ""
}
return prefix + result.String()
return result.String()
}
// unsupported format