Skip to content

Commit

Permalink
trim()[0] -> cut for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
xubiod committed Mar 8, 2024
1 parent d2537a0 commit 7bb4786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assembler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ var (
)

func (a *Assembler) PreprocessLine(line string) {
line = strings.Split(line, ";")[0]
line, _, _ = strings.Cut(line, ";")

if len(strings.TrimSpace(line)) == 0 {
return
Expand Down

0 comments on commit 7bb4786

Please sign in to comment.