Skip to content

Commit

Permalink
feat: remove basicLit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev committed Sep 9, 2022
1 parent 5b64e1b commit f75bb06
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/analyzer/analyzer.go
Expand Up @@ -506,9 +506,6 @@ func getBasicLitFromElts(elts []ast.Expr, key string) *ast.BasicLit {

// getBasicLitValue returns BasicLit value as string without quotes
func getBasicLitValue(basicLit *ast.BasicLit) string {
if basicLit == nil || len(basicLit.Value) == 0 || basicLit.Value == `""` {
return ""
}
var val strings.Builder
for _, r := range basicLit.Value {
if r == '"' {
Expand Down

0 comments on commit f75bb06

Please sign in to comment.