Skip to content

Commit ce8a3e0

Browse files
authored
Prevent incorrect timeout value from being set (#103)
1 parent 8aae61e commit ce8a3e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ func (c *Config) UpdateConfig(key string, value string, update bool) {
321321
intValue, err := strconv.Atoi(value)
322322
if err != nil {
323323
fmt.Println("Error caught while setting timeout:", err)
324+
return
324325
}
325326
c.Core.Timeout = intValue
326327
case "profile":

0 commit comments

Comments
 (0)