Skip to content

Commit ef6c1ac

Browse files
committed
fix the linting errors
Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
1 parent 28f03d6 commit ef6c1ac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmd/build.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,15 @@ func runBuild(cmd *cobra.Command, _ []string, newClient ClientFactory) (err erro
158158
cfg buildConfig
159159
f fn.Function
160160
)
161-
161+
162162
// Initialize config first
163163
cfg = newBuildConfig()
164-
164+
165165
// Create function object to check if initialized
166166
if f, err = fn.NewFunction(cfg.Path); err != nil {
167167
return
168168
}
169-
169+
170170
// Check if function exists BEFORE prompting for config
171171
if !f.Initialized() {
172172
return fmt.Errorf(`no function found in current directory.
@@ -186,9 +186,9 @@ Common build scenarios:
186186
func build --push Build and push to registry
187187
func build --builder=s2i Build with S2I builder
188188
189-
For more detailed build options, run 'func build --help'.`)
189+
For more detailed build options, run 'func build --help'`)
190190
}
191-
191+
192192
// Now that we know function exists, proceed with prompting
193193
if cfg, err = cfg.Prompt(); err != nil { // gather values into a single instruction set
194194
return

0 commit comments

Comments
 (0)