summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorJohn Shin <shinhs0506@gmail.com>2022-06-11 23:23:22 -0700
committerJohn Shin <shinhs0506@gmail.com>2022-06-11 23:23:22 -0700
commit4d54b3801f1061b22f4fdcd5c6737c30c64efcde (patch)
tree3ec5b2d8579d23d77801c5dd0156f26498862075 /pkg/config
parent3067c2c321c46260bcfb571ff82a9fcecb0c0a7b (diff)
apply formatting
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/config_linux.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/pkg/config/config_linux.go b/pkg/config/config_linux.go
index b406e875e..a52602447 100644
--- a/pkg/config/config_linux.go
+++ b/pkg/config/config_linux.go
@@ -1,26 +1,26 @@
package config
import (
- "io/ioutil"
- "strings"
+ "io/ioutil"
+ "strings"
)
func isWSL() bool {
- data, err := ioutil.ReadFile("/proc/sys/kernel/osrelease");
- return err == nil && strings.Contains(string(data), "microsoft")
+ data, err := ioutil.ReadFile("/proc/sys/kernel/osrelease")
+ return err == nil && strings.Contains(string(data), "microsoft")
}
// GetPlatformDefaultConfig gets the defaults for the platform
func GetPlatformDefaultConfig() OSConfig {
- if isWSL() {
- return OSConfig{
- EditCommand: ``,
- EditCommandTemplate: "",
- OpenCommand: `powershell.exe start explorer.exe {{filename}} >/dev/null`,
- OpenLinkCommand: `powershell.exe start {{link}} >/dev/null`,
- }
- }
+ if isWSL() {
+ return OSConfig{
+ EditCommand: ``,
+ EditCommandTemplate: "",
+ OpenCommand: `powershell.exe start explorer.exe {{filename}} >/dev/null`,
+ OpenLinkCommand: `powershell.exe start {{link}} >/dev/null`,
+ }
+ }
return OSConfig{
EditCommand: ``,