Skip to content

Commit 2c87c14

Browse files
committed
fmt
1 parent 69e7440 commit 2c87c14

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pkg/cloud/websites/websites.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ type (
5656
type LocalWebsiteService struct {
5757
websiteRegLock sync.RWMutex
5858
state State
59-
port int
6059
getApiAddress GetApiAddress
6160
isStartCmd bool
6261

@@ -95,7 +94,6 @@ func (l *LocalWebsiteService) register(website Website, port int) {
9594

9695
type staticSiteHandler struct {
9796
website *Website
98-
port int
9997
devURL string
10098
isStartCmd bool
10199
server *http.Server
@@ -227,6 +225,7 @@ func (l *LocalWebsiteService) startServer(server *http.Server, errChan chan erro
227225
// Start - Start the local website service
228226
func (l *LocalWebsiteService) Start(websites []Website) error {
229227
var errChan = make(chan error, 1)
228+
230229
var startPort = 5000
231230

232231
if l.isStartCmd {
@@ -251,7 +250,6 @@ func (l *LocalWebsiteService) Start(websites []Website) error {
251250
// Create the SPA handler for this website
252251
spa := staticSiteHandler{
253252
website: website,
254-
port: port,
255253
devURL: website.DevURL,
256254
isStartCmd: l.isStartCmd,
257255
}
@@ -291,7 +289,6 @@ func (l *LocalWebsiteService) Start(websites []Website) error {
291289
website := &websites[i]
292290
spa := staticSiteHandler{
293291
website: website,
294-
port: port,
295292
devURL: website.DevURL,
296293
isStartCmd: l.isStartCmd,
297294
}

0 commit comments

Comments
 (0)