Skip to content

Commit

Permalink
remove unnecessary field initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
evidolob committed Jan 17, 2023
1 parent 22266ba commit 29df4d1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/hosts/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@ func (h *Hosts) Add(ipRaw string, hosts []string) error {
// no host record, need to create new host line
if line == nil {
hfl := libhosty.HostsFileLine{
Type: libhosty.LineTypeAddress,
Address: ip,
Hostnames: hostEntries,
Comment: "",
IsCommented: false,
Type: libhosty.LineTypeAddress,
Address: ip,
Hostnames: hostEntries,
}

// inserts to hosts
Expand Down

0 comments on commit 29df4d1

Please sign in to comment.