Skip to content

Commit

Permalink
Fix quoteString()
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Feb 15, 2024
1 parent e5eab93 commit 350d524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion restartable.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ var (
// Quote special characters
func quoteString(str string) string {
if len(str) > 0 {
return strconv.Quote(str)[1 : len(str)-1]
str = strconv.Quote(str)
return str[1 : len(str) - 1]
}
return ""
}
Expand Down

0 comments on commit 350d524

Please sign in to comment.