mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fixed code smells and added some more tests
This commit is contained in:
@@ -28,7 +28,10 @@ function extractIdentifierFromPending(action: Action) {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
export default function reducer(state: Object = {}, action: Action): Object {
|
||||
export default function reducer(
|
||||
state: Object = {},
|
||||
action: Action = { type: "UNKNOWN" }
|
||||
): Object {
|
||||
const type = action.type;
|
||||
if (type.endsWith(PENDING_SUFFIX)) {
|
||||
const identifier = extractIdentifierFromPending(action);
|
||||
|
||||
Reference in New Issue
Block a user