]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/vol: re-write for better readability
authorRishabh Dave <ridave@redhat.com>
Sun, 19 Nov 2023 10:56:16 +0000 (16:26 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 25 Nov 2023 05:10:57 +0000 (10:40 +0530)
commite0034e5ed5f41d89ce88e8956adc88c48d3ccf8a
treec5ff2b4765f268dd9301631e17cad8641ad8a537
parent2e0b4ae3afc917b7ce0b55879310b41017f0f627
mgr/vol: re-write for better readability

Instead of writing like this  -

  if abcd1.abcd2(abcd3) and abcd4 == abcd5
print('efgh6')
  if abcd7.abcd8(abcd9) and abcd4 == abcd5
print('efgh10')

Write like this because it easier to read, especially in case of the
patch where condition under is really long -

  if abcd4 == abcd5:
    if abcd1.abcd2(abcd3):
print('abcd4')
    if abcd5.abcd8(abcd9):
print('abcd5')

Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v1.py
src/pybind/mgr/volumes/fs/operations/versions/subvolume_v2.py