From 5518645dfdfd1250dcabd98bda5d71d18eb4edcc Mon Sep 17 00:00:00 2001 From: kali Date: Fri, 25 Sep 2020 16:49:46 +0200 Subject: [pkg] windows helper and qtinstaller --- pkg/bitmask/autostart.go | 4 +++- pkg/bitmask/init.go | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'pkg/bitmask') diff --git a/pkg/bitmask/autostart.go b/pkg/bitmask/autostart.go index f314dbc..f8f0f19 100644 --- a/pkg/bitmask/autostart.go +++ b/pkg/bitmask/autostart.go @@ -1,3 +1,5 @@ +// +build !windows + // Copyright (C) 2018 LEAP // // This program is free software: you can redistribute it and/or modify @@ -35,7 +37,7 @@ type Autostart interface { Enable() error } -// newAutostart creates a handler for the autostart of your platform +// NewAutostart creates a handler for the autostart of your platform func NewAutostart(appName string, iconPath string) Autostart { exec := os.Args if os.Getenv("SNAP") != "" { diff --git a/pkg/bitmask/init.go b/pkg/bitmask/init.go index 00f145e..3e040b4 100644 --- a/pkg/bitmask/init.go +++ b/pkg/bitmask/init.go @@ -16,8 +16,6 @@ package bitmask import ( - "errors" - "fmt" "log" "os" "path" @@ -91,7 +89,6 @@ func initBitmask() (Bitmask, error) { b, err := vpn.Init() if err != nil { log.Printf("An error ocurred starting bitmask: %v", err) - err = errors.New(fmt.Sprintf(errorMsg, err)) } return b, err } -- cgit v1.2.3