diff --git a/LICENSE b/LICENSE index ede694bd..ef36546d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 ONS Digital +Copyright (c) 2018-2020 ONS Digital Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a96b035d..8205b5ce 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,6 @@ and update the `MAIL_*` and `FEEDBACK_*` variables configured for this app. ### Licence -Copyright ©‎ 2017, Office for National Statistics (https://www.ons.gov.uk) +Copyright ©‎ 2017 2020, Office for National Statistics (https://www.ons.gov.uk) Released under MIT license, see [LICENSE](LICENSE.md) for details. diff --git a/mapper/mapper.go b/mapper/mapper.go index 752cfa8d..d361344d 100644 --- a/mapper/mapper.go +++ b/mapper/mapper.go @@ -319,7 +319,7 @@ func CreateVersionsList(ctx context.Context, d dataset.DatasetDetails, edition d const correctionAlertType = "correction" if ver.Alerts != nil { for _, alert := range *ver.Alerts { - if &alert != nil && alert.Type == correctionAlertType { + if alert.Type == correctionAlertType { version.Corrections = append(version.Corrections, datasetVersionsList.Correction{ Reason: alert.Description, Date: alert.Date,