Base64: Fix problem reported by OCLint
@@ -57,17 +57,12 @@ static int unescape (Key * key, Key * parent)
*/
static bool shouldDecode (Key * key, bool metaMode)
{
- if (metaMode)
- {
- return keyGetMeta (key, "type") && strcmp (keyValue (keyGetMeta (key, "type")), "binary") == 0;
- }
- else
- {
+ if (metaMode) return keyGetMeta (key, "type") && strcmp (keyValue (keyGetMeta (key, "type")), "binary") == 0;
+
const char * strVal = keyString (key);
return strlen (strVal) >= ELEKTRA_PLUGIN_BASE64_PREFIX_LENGTH &&
strncmp (strVal, ELEKTRA_PLUGIN_BASE64_PREFIX, ELEKTRA_PLUGIN_BASE64_PREFIX_LENGTH) == 0;
}
-}
/**
* @brief Decode a base64 encoded key value and save the result as binary data in the key.
