little code optimize

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-06-05 12:58:55 +08:00
parent 7c34e2e1b7
commit aaf2126f91
2 changed files with 5 additions and 9 deletions
+3 -5
View File
@@ -90,11 +90,9 @@ func (c *StateCreator) Parse(content []byte, baseDir, file string) (*HelmState,
state.basePath = baseDir
decoder := yaml.NewDecoder(bytes.NewReader(content))
if !c.Strict {
decoder.SetStrict(false)
} else {
decoder.SetStrict(true)
}
decoder.SetStrict(c.Strict)
i := 0
for {
i++