Skip to content

Commit

Permalink
fix false positive declaration of deprecated Forge modules
Browse files Browse the repository at this point in the history
  • Loading branch information
xorpaul committed Jun 25, 2018
1 parent 7f0e1b1 commit 25a54c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forge.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func parseForgeAPIResult(json string, fm ForgeModule) ForgeResult {
forgeJsonParseTime += duration
mutex.Unlock()

if deprecatedTimestamp.Exists() && deprecatedTimestamp.String() != "null" {
if deprecatedTimestamp.Exists() && deprecatedTimestamp.Value() != nil {
supersededText := ""
if successorModule["slug"].Exists() {
supersededText = " The author has suggested " + successorModule["slug"].String() + " as its replacement"
Expand Down

0 comments on commit 25a54c0

Please sign in to comment.