Skip to content

Commit e72abc6

Browse files
committed
fix: apply gofmt -s formatting
1 parent 48cb998 commit e72abc6

11 files changed

Lines changed: 81 additions & 81 deletions

File tree

calling/call.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import (
1515
"net/http"
1616
"sync"
1717

18+
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
1819
"github.com/google/uuid"
1920
"github.com/pion/webrtc/v4"
20-
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
2121
)
2222

2323
// Call represents an active or pending call with full call control.

calling/callcontrol_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"sync"
1414
"testing"
1515

16-
"github.com/pion/webrtc/v4"
1716
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
17+
"github.com/pion/webrtc/v4"
1818
)
1919

2020
// ---- EventEmitter Tests ----

calling/calling_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func TestCallSettingsGetCallWaiting(t *testing.T) {
210210
}
211211
w.WriteHeader(http.StatusOK)
212212
json.NewEncoder(w).Encode(map[string]interface{}{
213-
"enabled": true,
213+
"enabled": true,
214214
"ringSplashEnabled": false,
215215
})
216216
}))

calling/callingclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
"strings"
1717
"sync"
1818

19-
"github.com/google/uuid"
2019
"github.com/WebexCommunity/webex-go-sdk/v2/mercury"
2120
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
21+
"github.com/google/uuid"
2222
)
2323

2424
// CallingClient is the main orchestrator for Webex Calling call control.

calling/line.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"sync"
1818
"time"
1919

20-
"github.com/google/uuid"
2120
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
21+
"github.com/google/uuid"
2222
)
2323

2424
// Line represents a registered telephony line with a Mobius server.

encryption/encryption.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"sync"
1717
"time"
1818

19-
jose "github.com/go-jose/go-jose/v4"
2019
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
20+
jose "github.com/go-jose/go-jose/v4"
2121
)
2222

2323
const (

encryption/encryption_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"testing"
1919
"time"
2020

21-
jose "github.com/go-jose/go-jose/v4"
2221
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
22+
jose "github.com/go-jose/go-jose/v4"
2323
)
2424

2525
// --- Helper Functions ---
@@ -351,7 +351,7 @@ func TestCacheKey(t *testing.T) {
351351

352352
func TestCacheKeyNil(t *testing.T) {
353353
client := newTestClient(t)
354-
client.CacheKey(nil) // Should not panic
354+
client.CacheKey(nil) // Should not panic
355355
client.CacheKey(&Key{URI: "", JWK: JWK{}}) // Empty URI, should not cache
356356

357357
client.mu.RLock()
@@ -910,9 +910,9 @@ func TestPendingRequestMechanism(t *testing.T) {
910910

911911
func TestKmsClusterFromDomain(t *testing.T) {
912912
tests := []struct {
913-
domain string
914-
def string
915-
want string
913+
domain string
914+
def string
915+
want string
916916
}{
917917
{"kms-a.wbx2.com", "kms-a.wbx2.com", "kms-a.wbx2.com"},
918918
{"kms-cisco.wbx2.com", "kms-a.wbx2.com", "kms-cisco.wbx2.com"},

meetings/meetings.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,20 +229,20 @@ type Invitee struct {
229229

230230
// Participant represents a meeting participant
231231
type Participant struct {
232-
ID string `json:"id,omitempty"`
233-
OrgID string `json:"orgId,omitempty"`
234-
Host bool `json:"host,omitempty"`
235-
CoHost bool `json:"coHost,omitempty"`
236-
SpaceModerator bool `json:"spaceModerator,omitempty"`
237-
Email string `json:"email,omitempty"`
238-
DisplayName string `json:"displayName,omitempty"`
239-
Invitee bool `json:"invitee,omitempty"`
240-
Muted bool `json:"muted,omitempty"`
241-
State string `json:"state,omitempty"`
242-
JoinedTime string `json:"joinedTime,omitempty"`
243-
LeftTime string `json:"leftTime,omitempty"`
244-
MeetingID string `json:"meetingId,omitempty"`
245-
HostEmail string `json:"hostEmail,omitempty"`
232+
ID string `json:"id,omitempty"`
233+
OrgID string `json:"orgId,omitempty"`
234+
Host bool `json:"host,omitempty"`
235+
CoHost bool `json:"coHost,omitempty"`
236+
SpaceModerator bool `json:"spaceModerator,omitempty"`
237+
Email string `json:"email,omitempty"`
238+
DisplayName string `json:"displayName,omitempty"`
239+
Invitee bool `json:"invitee,omitempty"`
240+
Muted bool `json:"muted,omitempty"`
241+
State string `json:"state,omitempty"`
242+
JoinedTime string `json:"joinedTime,omitempty"`
243+
LeftTime string `json:"leftTime,omitempty"`
244+
MeetingID string `json:"meetingId,omitempty"`
245+
HostEmail string `json:"hostEmail,omitempty"`
246246
Devices []ParticipantDevice `json:"devices,omitempty"`
247247
Errors webexsdk.ResourceErrors `json:"errors,omitempty"`
248248
}

mercury/mercury.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"sync/atomic"
1717
"time"
1818

19-
"github.com/gorilla/websocket"
2019
"github.com/WebexCommunity/webex-go-sdk/v2/webexsdk"
20+
"github.com/gorilla/websocket"
2121
)
2222

2323
// Config holds the configuration for the Mercury plugin

webexsdk/errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ func NewAPIError(resp *http.Response, body []byte) error {
196196
case http.StatusTooManyRequests: // 429
197197
return &RateLimitError{APIError: base}
198198
case http.StatusInternalServerError, // 500
199-
http.StatusBadGateway, // 502
199+
http.StatusBadGateway, // 502
200200
http.StatusServiceUnavailable, // 503
201-
http.StatusGatewayTimeout: // 504
201+
http.StatusGatewayTimeout: // 504
202202
return &ServerError{APIError: base}
203203
default:
204204
return base

0 commit comments

Comments
 (0)