Skip to content

Commit 20ebdfe

Browse files
committed
fix: lint issues
1 parent 1fde953 commit 20ebdfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/api_application.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func (server *Server) getApplicationBuildLog(c echo.Context) error {
480480
log.Println(err)
481481
return
482482
} else {
483-
if msg.Payload == "SWIFTWAVE_EOF_LOG" {
483+
if strings.Compare(msg.Payload, "SWIFTWAVE_EOF_LOG") == 0 {
484484
return
485485
}
486486
err := ws.WriteMessage(websocket.TextMessage, []byte(msg.Payload))

server/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ func (s ApplicationSource) GetSourceSummary() string {
9090

9191
func (s *Server) isProductionEnvironment() bool {
9292
return strings.Compare(s.ENVIRONMENT, "production") == 0
93-
}
93+
}

0 commit comments

Comments
 (0)