Skip to content

Commit

Permalink
fix(lint): gofmt simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
thechadgod committed Feb 9, 2022
1 parent b3a2fa7 commit 44152ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ var (
rootCmd = &cobra.Command{
Use: "snoopy",
Short: "snoop around people on the internet",
Long: `
Long: `
Track other people on the internet and gather data on them.
Automate opsec and osint with snoopy.
`,
}
)

func Execute() {
err := rootCmd.Execute()
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
Expand Down
4 changes: 1 addition & 3 deletions cmd/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public IP address.
`,
Run: func(cmd *cobra.Command, args []string) {

ipAddress := cmd.Flag("ip").Value.String()
ipAddress := cmd.Flag("ip").Value.String()

if ipAddress == "" {

Expand Down Expand Up @@ -49,8 +49,6 @@ public IP address.
}

},


}

func init() {
Expand Down
1 change: 0 additions & 1 deletion helper/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ type IpApiData struct {
RegionName string `json:"regionName"`
}


func GetPublicIP() (IP, error) {

res, err := http.Get("http://wtfismyip.com/json")
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import "github.com/thechadgod/snoopy/cmd"


func main() {
cmd.Execute()
}

0 comments on commit 44152ff

Please sign in to comment.