File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -243,10 +243,7 @@ export function validateConfigTypes(config: Record<string, any>): ValidationErro
243243 actual : typeof config . turnProtection . turns ,
244244 } )
245245 }
246- if (
247- typeof config . turnProtection . turns === "number" &&
248- config . turnProtection . turns < 1
249- ) {
246+ if ( typeof config . turnProtection . turns === "number" && config . turnProtection . turns < 1 ) {
250247 errors . push ( {
251248 key : "turnProtection.turns" ,
252249 expected : "positive number (>= 1)" ,
@@ -586,7 +583,7 @@ function showConfigValidationWarnings(
586583 duration : 7000 ,
587584 } ,
588585 } )
589- } catch { }
586+ } catch { }
590587 } , 7000 )
591588}
592589
@@ -890,7 +887,7 @@ export function getConfig(ctx: PluginInput): PluginConfig {
890887 duration : 7000 ,
891888 } ,
892889 } )
893- } catch { }
890+ } catch { }
894891 } , 7000 )
895892 } else if ( result . data ) {
896893 // Validate config keys and types
@@ -936,7 +933,7 @@ export function getConfig(ctx: PluginInput): PluginConfig {
936933 duration : 7000 ,
937934 } ,
938935 } )
939- } catch { }
936+ } catch { }
940937 } , 7000 )
941938 } else if ( result . data ) {
942939 // Validate config keys and types
@@ -979,7 +976,7 @@ export function getConfig(ctx: PluginInput): PluginConfig {
979976 duration : 7000 ,
980977 } ,
981978 } )
982- } catch { }
979+ } catch { }
983980 } , 7000 )
984981 } else if ( result . data ) {
985982 // Validate config keys and types
You can’t perform that action at this time.
0 commit comments