Skip to content

Commit

Permalink
chore: Golang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jul 16, 2022
1 parent f34ccc7 commit 4a84be1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions interfacer/src/browsh/browsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,19 @@ func MainEntry() {
}
viper.SetDefault("validURL", validURL)
Initialise()

// Print version if asked and exit
if (viper.GetBool("version") || viper.GetBool("v")) {
if viper.GetBool("version") || viper.GetBool("v") {
println(browshVersion)
os.Exit(0)
}

// Print name if asked and exit
if (viper.GetBool("name") || viper.GetBool("n")) {
if viper.GetBool("name") || viper.GetBool("n") {
println("Browsh")
os.Exit(0)
}

// Decide whether to run in http-server-mode or CLI app
if viper.GetBool("http-server-mode") {
HTTPServerStart()
Expand Down
2 changes: 1 addition & 1 deletion interfacer/src/browsh/firefox.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func setupFirefox() {
go func() {
<-sigs
quitBrowsh()
}()
}()

firefoxMarionette()
installWebextension()
Expand Down
1 change: 1 addition & 0 deletions interfacer/src/browsh/firefox_unix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris

package browsh
Expand Down
1 change: 1 addition & 0 deletions interfacer/src/browsh/firefox_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package browsh
Expand Down
2 changes: 1 addition & 1 deletion scripts/misc.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ function golang_lint_check() {
}

function golang_lint_fix() {
gofmt -f ./interfacer
gofmt -w ./interfacer
}

0 comments on commit 4a84be1

Please sign in to comment.