community/*: remove unnecessary variable braces
[AL32]:unnecessary use of braces
Script
import subprocess
p = subprocess.run('apkbuild-lint */APKBUILD', capture_output=True, shell=True)
for line in p.stdout.decode('utf-8').strip().split('\n'):
if 'AL32' not in line:
continue
filename, linenum = line.split(':')[2:4]
linenum = int(linenum)
var = line.split(' ')[-1]
clean_var = var.replace('{', '').replace('}', '')
with open(filename, 'r+') as file:
lines = file.readlines()
lines[linenum-1] = lines[linenum-1].replace(var, clean_var)
file.seek(0)
file.writelines(lines)
file.truncate()
Edited by Patrycja Rosa