-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] Utility: Extract noop methods to util
Create two utility functions one returning empty Promise object and one returning void to use as default props for the component and HoC. Signed-off-by: Progyan Bhattacharya <[email protected]>
- Loading branch information
1 parent
6f4fcc2
commit cdb32cf
Showing
4 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* istanbul ignore next */ | ||
export function noop() { | ||
/** No Operation */ | ||
} | ||
|
||
/* istanbul ignore next */ | ||
export function noopPromise() { | ||
/** No Operation that Returns a Promise */ | ||
return Promise.resolve(); | ||
} |