style: gofmt files touched by the community fixes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
abaac8eb93
commit
e02441fc4e
13 files changed
+14
-14
No files matched your search
@@ -1,11 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"database/sql"
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package call_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"time"
|
||||
|
||||
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package chat_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"time"
|
||||
|
||||
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package community_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"time"
|
||||
|
||||
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package group_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package instance_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"bufio"
|
||||
"context"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package label_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"time"
|
||||
|
||||
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package message_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package newsletter_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"time"
|
||||
|
||||
instance_model "github.com/evolution-foundation/evolution-go/pkg/instance/model"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Package safemap holds the process-wide maps that are shared across goroutines.
|
||||
//
|
||||
// WHY THIS EXISTS
|
||||
// # WHY THIS EXISTS
|
||||
//
|
||||
// The three state maps of the process (clientPointer, myClientPointer and
|
||||
// killChannel) are created once at startup and passed BY REFERENCE into eleven
|
||||
@@ -19,7 +19,7 @@
|
||||
// within seconds, but every number was offline in the meantime, and it repeats
|
||||
// on every restart that brings up more than a couple of instances at once.
|
||||
//
|
||||
// WHY A SEPARATE PACKAGE, AND WHY GENERICS
|
||||
// # WHY A SEPARATE PACKAGE, AND WHY GENERICS
|
||||
//
|
||||
// MyClient lives in pkg/whatsmeow/service. If the safe type lived there, the
|
||||
// other ten packages would have to import that package and an import cycle
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package send_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"bytes"
|
||||
"context"
|
||||
crypto_rand "crypto/rand"
|
||||
@@ -9,6 +8,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"image"
|
||||
"image/jpeg"
|
||||
"image/png"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package user_service
|
||||
|
||||
import (
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/evolution-foundation/evolution-go/pkg/safemap"
|
||||
"io"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
+1
-1
@@ -214,7 +214,7 @@ func ParseJID(arg string) (whatsmeow_types.JID, bool) {
|
||||
recipient.User = strings.TrimPrefix(recipient.User, "+")
|
||||
}
|
||||
|
||||
if recipient.User == "" &&!strings.Contains(jidString, "@broadcast") {
|
||||
if recipient.User == "" && !strings.Contains(jidString, "@broadcast") {
|
||||
logger.LogError("Invalid JID. No user specified: %s", jidString)
|
||||
return recipient, false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user