Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Feb 15, 2024
1 parent 03cb1f5 commit 5a827cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: unit-test

on:
pull_request:
push:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion spawn/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func (fc *FileContent) RemoveTaggedLines(name string, deleteLine bool) {
newContent = append(newContent, line)
}

// return []byte(strings.Join(newContent, "\n"))
fc.Contents = strings.Join(newContent, "\n")
}

Expand Down Expand Up @@ -137,6 +136,7 @@ func (fc *FileContent) RemoveModuleFromText(removeText string, pathSuffix ...str
// (i.e. NewKeeper in app.go is a good example fo this)
if startBatchDelete {
fmt.Printf("rm %s startIdx: %d, %s\n", removeText, idx, line)

if strings.TrimSpace(line) == ")" || strings.TrimSpace(line) == "}" {
fmt.Println("endIdx:", idx, line)
startBatchDelete = false
Expand Down

0 comments on commit 5a827cd

Please sign in to comment.