Skip to content

Commit 5bcd097

Browse files
committed
Linting
1 parent 20e231a commit 5bcd097

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

api/v2beta1/atom_conversion.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ package v2beta1
2626

2727
import (
2828
"log"
29-
"sigs.k8s.io/controller-runtime/pkg/conversion"
3029

3130
pdoknlv3 "github.com/pdok/atom-operator/api/v3"
31+
"sigs.k8s.io/controller-runtime/pkg/conversion"
3232
)
3333

3434
// ConvertTo converts this Atom (v2beta1) to the Hub version (v3).
@@ -103,16 +103,16 @@ func (src *Atom) ConvertTo(dstRaw conversion.Hub) error {
103103
TechnicalName: srcDownload.Name, // TechnicalName vs Name?
104104
Title: *srcDownload.Title,
105105
Content: *srcDownload.Content,
106-
Updated: nil, //TODO Convert from srcDownload.Updated
106+
Updated: nil, // TODO Convert from srcDownload.Updated
107107
// TODO fix polygon float dangerousTypes
108-
//Polygon: pdoknlv3.Polygon{
109-
// BBox: pdoknlv3.BBox{
110-
// MinX: strconv.FormatFloat(srcDataset.Bbox.Minx, 'f', -1, 32),
111-
// MinY: strconv.FormatFloat(srcDataset.Bbox.Miny, 'f', -1, 32),
112-
// MaxX: strconv.FormatFloat(srcDataset.Bbox.Maxx, 'f', -1, 32),
113-
// MaxY: strconv.FormatFloat(srcDataset.Bbox.Maxy, 'f', -1, 32),
114-
// },
115-
//},
108+
// Polygon: pdoknlv3.Polygon{
109+
// BBox: pdoknlv3.BBox{
110+
// MinX: strconv.FormatFloat(srcDataset.Bbox.Minx, 'f', -1, 32),
111+
// MinY: strconv.FormatFloat(srcDataset.Bbox.Miny, 'f', -1, 32),
112+
// MaxX: strconv.FormatFloat(srcDataset.Bbox.Maxx, 'f', -1, 32),
113+
// MaxY: strconv.FormatFloat(srcDataset.Bbox.Maxy, 'f', -1, 32),
114+
// },
115+
// },
116116
SRS: &pdoknlv3.SRS{
117117
URI: srcDownload.Srs.URI,
118118
Name: srcDownload.Srs.Code,
@@ -159,7 +159,7 @@ func (dst *Atom) ConvertFrom(srcRaw conversion.Hub) error {
159159
dst.Spec.Service = AtomService{
160160
Title: src.Spec.Service.Title,
161161
Subtitle: src.Spec.Service.Subtitle,
162-
//MetadataIdentifier: Todo take from service.links?
162+
// MetadataIdentifier: Todo take from service.links?
163163
Rights: src.Spec.Service.Rights,
164164
Author: Author{
165165
Name: src.Spec.Service.Author.Name,

api/v2beta1/atom_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type Dataset struct {
8686
SourceIdentifier string `json:"sourceIdentifier"`
8787
Links []OtherLink `json:"links,omitempty"`
8888
Downloads []Download `json:"downloads"`
89-
//Bbox Bbox `json:"bbox"`
89+
// Bbox Bbox `json:"bbox"`
9090
}
9191

9292
// Bbox is the struct for the bounding box extent of an atom
@@ -112,7 +112,7 @@ type Link struct {
112112
BlobKey *string `json:"BlobKey"`
113113
Updated *string `json:"updated,omitempty"`
114114
Version *string `json:"version,omitempty"`
115-
//Bbox *Bbox `json:"bbox,omitempty"`
115+
// Bbox *Bbox `json:"bbox,omitempty"`
116116
Rel *string `json:"rel,omitempty"`
117117
}
118118

api/v2beta1/types.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ type ConditionType string
7373
// ConditionStatus specifies a string for field ConditionType
7474
type ConditionStatus string
7575

76-
//// This const specifies allowed fields for Status
77-
//const (
78-
// ConditionTrue ConditionStatus = "True"
79-
// ConditionFalse ConditionStatus = "False"
80-
// ConditionUnknown ConditionStatus = "Unknown"
81-
//)
76+
// // This const specifies allowed fields for Status
77+
// const (
78+
// ConditionTrue ConditionStatus = "True"
79+
// ConditionFalse ConditionStatus = "False"
80+
// ConditionUnknown ConditionStatus = "Unknown"
81+
// )
8282

8383
// ResultAnsible - encapsulation of the ansible result. 'AnsibleResult' is turned around in struct to comply with linting
8484
type ResultAnsible struct {

0 commit comments

Comments
 (0)