Skip to content

Commit 022268f

Browse files
committed
arduino#1456 - Adjust code style
1 parent c14718b commit 022268f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cli/sketch/new.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ package sketch
1717

1818
import (
1919
"os"
20-
"strings"
2120
"path/filepath"
21+
"strings"
2222

2323
"github.com/arduino/arduino-cli/cli/errorcodes"
2424
"github.com/arduino/arduino-cli/cli/feedback"
@@ -40,7 +40,7 @@ func initNewCommand() *cobra.Command {
4040

4141
func runNewCommand(cmd *cobra.Command, args []string) {
4242
// Trim to avoid issues if user creates a sketch adding the .ino extesion to the name
43-
sketchName := args[0];
43+
sketchName := args[0]
4444
trimmedSketchName := strings.TrimSuffix(sketchName, ".ino")
4545
sketchDir, err := filepath.Abs(trimmedSketchName)
4646
if err != nil {

Diff for: commands/sketch/new.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func CreateSketch(sketchDir string, sketchName string) (string, error) {
4949

5050
// NewSketch FIXMEDOC
5151
func NewSketch(ctx context.Context, req *rpc.NewSketchRequest) (*rpc.NewSketchResponse, error) {
52-
sketchesDir := configuration.Settings.GetString("directories.User");
52+
sketchesDir := configuration.Settings.GetString("directories.User")
5353
sketchDir := filepath.Join(sketchesDir, req.SketchName)
5454
sketchFile, err := CreateSketch(sketchDir, req.SketchName)
5555
if err != nil {

0 commit comments

Comments
 (0)