Skip to content

Commit b2b117b

Browse files
committed
go fmt
1 parent ffda357 commit b2b117b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: client/pipeline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type Spec struct {
9292
FailFast *bool `json:"fail_fast,omitempty"`
9393
RuntimeEnvironment RuntimeEnvironment `json:"runtimeEnvironment,omitempty"`
9494
TerminationPolicy []map[string]interface{} `json:"terminationPolicy,omitempty"`
95-
PackId string `json:"packId,omitempty"`
95+
PackId string `json:"packId,omitempty"`
9696
Hooks *Hooks `json:"hooks,omitempty"`
9797
Options map[string]bool `json:"options,omitempty"`
9898
}

Diff for: codefresh/resource_pipeline.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,11 @@ func flattenSpec(spec cfClient.Spec) []interface{} {
509509
m["options"] = resOptions
510510
}
511511

512-
m["pack_id"] = spec.PackId
512+
m["pack_id"] = spec.PackId
513513
m["concurrency"] = spec.Concurrency
514514
m["branch_concurrency"] = spec.BranchConcurrency
515515
m["trigger_concurrency"] = spec.TriggerConcurrency
516516

517-
518517
m["priority"] = spec.Priority
519518

520519
m["contexts"] = spec.Contexts
@@ -639,7 +638,7 @@ func mapResourceToPipeline(d *schema.ResourceData) *cfClient.Pipeline {
639638
OriginalYamlString: originalYamlString,
640639
},
641640
Spec: cfClient.Spec{
642-
PackId: d.Get("spec.0.pack_id").(string),
641+
PackId: d.Get("spec.0.pack_id").(string),
643642
Priority: d.Get("spec.0.priority").(int),
644643
Concurrency: d.Get("spec.0.concurrency").(int),
645644
BranchConcurrency: d.Get("spec.0.branch_concurrency").(int),

Diff for: tools.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build tools
12
// +build tools
23

34
package main

0 commit comments

Comments
 (0)