If it's only being used once in the code overall, no need to declare extra variable. It works for me in Simplytest.me using drupal 8.1.x too without errors.
PS: newbie contributor and not sure how else to review the code ... any guidance is appreciated.
So yeah while I think this can totally land at any point, given that it doesn't break any BC layer, IMHO we don't need this before the release, but we could totally commit this for 8.0.1
Comments
Comment #2
heykarthikwithuComment #3
goldlilys commentedIf it's only being used once in the code overall, no need to declare extra variable. It works for me in Simplytest.me using drupal 8.1.x too without errors.
PS: newbie contributor and not sure how else to review the code ... any guidance is appreciated.
Comment #4
dawehnerSo yeah while I think this can totally land at any point, given that it doesn't break any BC layer, IMHO we don't need this before the release, but we could totally commit this for 8.0.1
Comment #6
jibranComment #7
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!
Comment #10
nod_Comment #11
droplet commentedThere're a lot of these kind of redundant code in Ckeditor/Editor modules. If someone interested, you can take a look at that.
Comment #12
heykarthikwithuSure, will take and work on this :)
Comment #13
heykarthikwithu#2625512: Add @param, @return in the code base for the editor module
Comment #15
heykarthikwithu