Fixed code smell for variable naming convention.

This commit is contained in:
Pradip Parkale 2020-07-09 18:28:08 +05:30 committed by Akshay Joshi
parent 2db9242f5c
commit 916182f80f
2 changed files with 10 additions and 10 deletions

View File

@ -155,9 +155,9 @@ def main():
JavascriptBundler, JsState JavascriptBundler, JsState
app.debug = True app.debug = True
javascriptBundler = JavascriptBundler() javascript_bundler = JavascriptBundler()
javascriptBundler.bundle() javascript_bundler.bundle()
if javascriptBundler.report() == JsState.NONE: if javascript_bundler.report() == JsState.NONE:
app.logger.error( app.logger.error(
"Unable to generate javascript.\n" "Unable to generate javascript.\n"
"To run the app ensure that yarn install command runs " "To run the app ensure that yarn install command runs "

View File

@ -352,15 +352,15 @@ def fetch_length_precision(data):
# If we have length & precision both # If we have length & precision both
if length and precision: if length and precision:
matchObj = re.search(r'(\d+),(\d+)', fulltype) match_obj = re.search(r'(\d+),(\d+)', fulltype)
if matchObj: if match_obj:
data['attlen'] = matchObj.group(1) data['attlen'] = match_obj.group(1)
data['attprecision'] = matchObj.group(2) data['attprecision'] = match_obj.group(2)
elif length: elif length:
# If we have length only # If we have length only
matchObj = re.search(r'(\d+)', fulltype) match_obj = re.search(r'(\d+)', fulltype)
if matchObj: if match_obj:
data['attlen'] = matchObj.group(1) data['attlen'] = match_obj.group(1)
data['attprecision'] = None data['attprecision'] = None
return data return data