Removed duplicate code. 91/56491/2
authorIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Mon, 16 Jul 2018 09:00:26 +0000 (14:30 +0530)
committerTakamune Cho <tc012c@att.com>
Mon, 16 Jul 2018 14:40:38 +0000 (14:40 +0000)
commit675e8b8c14dafa82e3e771bfe3fd616e19475766
treec79b8f120cb2aa8ead4fe9da2e91e46f0853637c
parent9c76707c6b1c261b90e4b0f65db6ff5606c7bee5
Removed duplicate code.

The same variable values are set on file upload failure either due to
wrong format or due to wrong content of the file being uploaded in
uplaod() and uplaodedFileResult() methods of test component.

Moved this duplicate code to a single method called
setValuesOnFileUploadFailure() and called this method where required.

Issue-ID: APPC-1082
Change-Id: If92d375e3cfa44479c2d7f54915a1b6461bdda89
Signed-off-by: Arundathi <arundpil@in.ibm.com>
src/app/test/test.component.ts