File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -232,16 +232,18 @@ func loop() {
232
232
if err != nil {
233
233
log .Panicf ("config.ini cannot be parsed: %s" , err )
234
234
}
235
- } else if cert .GetDefaultBrowserName () == "Safari" && cert .PromptInstallCertsSafari () {
236
- err = config .SetInstallCertsIni (configPath .String (), "true" )
237
- if err != nil {
238
- log .Panicf ("config.ini cannot be parsed: %s" , err )
239
- }
240
- cert .GenerateAndInstallCertificates (config .GetCertificatesDir ())
241
- } else {
242
- err = config .SetInstallCertsIni (configPath .String (), "false" )
243
- if err != nil {
244
- log .Panicf ("config.ini cannot be parsed: %s" , err )
235
+ } else if cert .GetDefaultBrowserName () == "Safari" {
236
+ if cert .PromptInstallCertsSafari () {
237
+ err = config .SetInstallCertsIni (configPath .String (), "true" )
238
+ if err != nil {
239
+ log .Panicf ("config.ini cannot be parsed: %s" , err )
240
+ }
241
+ cert .GenerateAndInstallCertificates (config .GetCertificatesDir ())
242
+ } else {
243
+ err = config .SetInstallCertsIni (configPath .String (), "false" )
244
+ if err != nil {
245
+ log .Panicf ("config.ini cannot be parsed: %s" , err )
246
+ }
245
247
}
246
248
}
247
249
}
You can’t perform that action at this time.
0 commit comments