Skip to content

Commit

Permalink
chore: Update gocd jsonlib to 2.13 (#506)
Browse files Browse the repository at this point in the history
* change: Update gocd jsonlib to 2.13

* Updating lock file

* omit nil check for json.RawMessage

S1009: should omit nil check; len() for encoding/json.RawMessage is defined as zero (gosimple)

---------

Co-authored-by: Ian Woodard <[email protected]>
Co-authored-by: Francesco Vigliaturo <[email protected]>
  • Loading branch information
3 people authored Aug 26, 2024
1 parent 8ce06e0 commit a2f1ff5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gocd/templates/jsonnetfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"subdir": "libs"
}
},
"version": "v2.10.0"
"version": "v2.13.0"
}
],
"legacyImports": true
Expand Down
4 changes: 2 additions & 2 deletions gocd/templates/jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"subdir": "libs"
}
},
"version": "74ae5728e2d7ed39fdd43cf3b2d28dde7e4567a1",
"sum": "AKMGYALLyaVVVjTNnZy64PoCDA8QjxTbHBe5dCnE4tE="
"version": "6ddc943ae87444b48e16995639dfe89f33a0f444",
"sum": "NH9U5jQ8oCSPXLuBw27OqAaPLBUDqMGHvRLxfo84hNQ="
}
],
"legacyImports": false
Expand Down
2 changes: 1 addition & 1 deletion internal/profile/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (p *LegacyProfile) Normalize() {
switch t := p.Trace.(type) {
case *Android:
t.NormalizeMethods(p)
if p.JsProfile != nil && len(p.JsProfile) > 0 {
if len(p.JsProfile) > 0 {
st, err := unmarshalSampleProfile(p.JsProfile)
if err == nil {
jsProf := sample.Profile{
Expand Down

0 comments on commit a2f1ff5

Please sign in to comment.