chore: update code format. (#628)
This commit is contained in:
@@ -76,7 +76,7 @@ func WriteIndent(writer io.Writer, indent int) {
|
||||
|
||||
// RemoveComment filters comment content
|
||||
func RemoveComment(line string) string {
|
||||
var commentIdx = strings.Index(line, "//")
|
||||
commentIdx := strings.Index(line, "//")
|
||||
if commentIdx >= 0 {
|
||||
return strings.TrimSpace(line[:commentIdx])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user