Skip to content

Commit

Permalink
fix(toml): remove unsupported schema definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Aug 9, 2024
1 parent f13eae8 commit 39b7615
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -65,7 +64,7 @@ func (cfg *Config) Export(format string) string {
return ""
}

return prefix + result.String()
return result.String()
}

// unsupported format
Expand Down

0 comments on commit 39b7615

Please sign in to comment.