mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Fixed log level, deleted commented code
This commit is contained in:
parent
4478bd14c9
commit
51043770bf
@ -51,8 +51,6 @@ func loadYaml(filename string, decoder Decoder) (*CandidateNode, error) {
|
|||||||
return &CandidateNode{Node: &yaml.Node{Kind: yaml.ScalarNode, Tag: "!!null"}}, nil
|
return &CandidateNode{Node: &yaml.Node{Kind: yaml.ScalarNode, Tag: "!!null"}}, nil
|
||||||
} else if documents.Len() == 1 {
|
} else if documents.Len() == 1 {
|
||||||
candidate := documents.Front().Value.(*CandidateNode)
|
candidate := documents.Front().Value.(*CandidateNode)
|
||||||
log.Debug("first comment:", candidate.LeadingContent)
|
|
||||||
// candidate.Node.Content[0].Content[0].HeadComment = candidate.LeadingContent
|
|
||||||
return candidate, nil
|
return candidate, nil
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -31,7 +31,7 @@ type expressionScenario struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
logging.SetLevel(logging.DEBUG, "")
|
logging.SetLevel(logging.ERROR, "")
|
||||||
Now = func() time.Time {
|
Now = func() time.Time {
|
||||||
return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC)
|
return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user