mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
Tuned up local file handling and cleaned things up
Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -78,13 +78,7 @@ func (index *SpecIndex) FindNodeOrigin(node *yaml.Node) *NodeOrigin {
|
||||
if index.nodeMap[node.Line][node.Column] != nil {
|
||||
foundNode := index.nodeMap[node.Line][node.Column]
|
||||
match := true
|
||||
if foundNode.Value != node.Value {
|
||||
match = false
|
||||
}
|
||||
if foundNode.Kind != node.Kind {
|
||||
match = false
|
||||
}
|
||||
if foundNode.Tag != node.Tag {
|
||||
if foundNode.Value != node.Value || foundNode.Kind != node.Kind || foundNode.Tag != node.Tag {
|
||||
match = false
|
||||
}
|
||||
if len(foundNode.Content) == len(node.Content) {
|
||||
|
||||
Reference in New Issue
Block a user