Skip to content

Commit 07ae10f

Browse files
committed
removed user id from filter api endpoint
1 parent 0a97141 commit 07ae10f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

main.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,12 @@ func main() {
135135
cli.CompletionOptions.HiddenDefaultCmd = true
136136

137137
// create a default profile if file does not exist
138-
if previousConfig, err := config.ReadConfigFromFile(); os.IsNotExist(err) {
138+
if _, err := config.ReadConfigFromFile(); os.IsNotExist(err) {
139139
conf := config.Config{
140140
Profiles: map[string]config.Profile{"demo": defaultInitialProfile()},
141141
DefaultProfile: "demo",
142142
}
143143
config.WriteConfigToFile(&conf)
144-
} else {
145-
// updates the demo profile for existing users
146-
_, exists := previousConfig.Profiles["demo"]
147-
if exists {
148-
conf := config.Config{
149-
Profiles: map[string]config.Profile{"demo": defaultInitialProfile()},
150-
DefaultProfile: "demo",
151-
}
152-
config.WriteConfigToFile(&conf)
153-
}
154144
}
155145

156146
err := cli.Execute()

0 commit comments

Comments
 (0)