File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments