Skip to content

Commit

Permalink
Merge pull request #123 from telekom-mms/feature/cleanups
Browse files Browse the repository at this point in the history
Feature/cleanups
  • Loading branch information
hwipl authored Sep 5, 2024
2 parents 6c07575 + f827b65 commit bae29f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"net"
"net/netip"
"reflect"
"slices"
"strconv"
"strings"
Expand Down Expand Up @@ -175,7 +174,7 @@ func (d *Daemon) setStatusConnectedAt(connectedAt int64) {

// setStatusServers sets the vpn servers in status.
func (d *Daemon) setStatusServers(servers []string) {
if reflect.DeepEqual(d.status.Servers, servers) {
if slices.Equal(d.status.Servers, servers) {
// servers not changed
return
}
Expand Down
3 changes: 2 additions & 1 deletion tools/dbusclient/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Dbusclient is an example of a D-Bus API client.
Dbusclient is an example of a D-Bus API client. It monitors and shows the D-Bus
properties of the OC-Daemon.
*/
package main

Expand Down

0 comments on commit bae29f1

Please sign in to comment.