MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isSettingModified

Function isSettingModified

packages/cli/src/utils/settingsUtils.ts:274–282  ·  view source on GitHub ↗
(key: string, value: boolean)

Source from the content-addressed store, hash-verified

272 * Check if a setting value is modified from its default
273 */
274export function isSettingModified(key: string, value: boolean): boolean {
275 const defaultValue = getDefaultValue(key);
276 // Handle type comparison properly
277 if (typeof defaultValue === 'boolean') {
278 return value !== defaultValue;
279 }
280 // If default is not a boolean, consider it modified if value is true
281 return value === true;
282}
283
284/**
285 * Check if a setting exists in the original settings file for a scope

Callers 1

Calls 1

getDefaultValueFunction · 0.85

Tested by

no test coverage detected