We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c249913 commit 9bb5df8Copy full SHA for 9bb5df8
1 file changed
cmd/go-yaml/main.go
@@ -233,10 +233,10 @@ func parseOneOption(s string) ([]yaml.Option, error) {
233
234
// parseOptionFlags parses comma-separated options string into individual options
235
func parseOptionFlags(s string) ([]yaml.Option, error) {
236
- parts := bytes.Split([]byte(s), []byte(","))
+ parts := strings.Split(s, ",")
237
var opts []yaml.Option
238
for _, part := range parts {
239
- trimmed := string(bytes.TrimSpace(part))
+ trimmed := strings.TrimSpace(part)
240
if trimmed == "" {
241
continue
242
}
0 commit comments