Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fmt modify #714

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/resources/packagekit/packagekit.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (obj *Conn) matchSignal(ch chan *dbus.Signal, path dbus.ObjectPath, iface s
// TODO: if we make this call many times, we seem to receive signals
// that many times... Maybe this should be an object singleton?
var call *dbus.Call
pathStr := fmt.Sprintf("%s", path)
pathStr := path
if len(signals) == 0 {
args := fmt.Sprintf("type='signal', path='%s', interface='%s'", pathStr, iface)
argsList = append(argsList, args)
Expand Down
6 changes: 3 additions & 3 deletions lang/ast/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6566,7 +6566,7 @@ func (obj *ExprFunc) String() string {

var a []string
for _, x := range obj.Args {
a = append(a, fmt.Sprintf("%s", x.String()))
a = append(a, x.String())
}
args := strings.Join(a, ", ")
s := fmt.Sprintf("func(%s)", args)
Expand Down Expand Up @@ -7213,7 +7213,7 @@ func (obj *ExprFunc) Graph() (*pgraph.Graph, error) {
var once bool
edgeGenFn := func(v1, v2 pgraph.Vertex) pgraph.Edge {
if once {
panic(fmt.Sprintf("edgeGenFn for func was called twice"))
panic("edgeGenFn for func was called twice")
}
once = true
return edge
Expand Down Expand Up @@ -7332,7 +7332,7 @@ type ExprCall struct {
func (obj *ExprCall) String() string {
var s []string
for _, x := range obj.Args {
s = append(s, fmt.Sprintf("%s", x.String()))
s = append(s, x.String())
}
return fmt.Sprintf("call:%s(%s)", obj.Name, strings.Join(s, ", "))
}
Expand Down
2 changes: 1 addition & 1 deletion pgraph/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func runGraphCmp(t *testing.T, g1, g2 *Graph) string {
str := ""
str += fmt.Sprintf(" actual (g1): %v%s", g1, fullPrint(g1))
str += fmt.Sprintf("expected (g2): %v%s", g2, fullPrint(g2))
str += fmt.Sprintf("cmp error:")
str += "cmp error:"
str += fmt.Sprintf("%v", err)
return str
}
Expand Down