File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
lib/workers/repository/update/branch Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,17 @@ async function checkExistingBranch(
196
196
return existingContent ;
197
197
}
198
198
199
- // check if current !== newString and return 1 if it does or 0 if it doesn't
199
+ /**
200
+ * Check if an update from `current` to `newString` should be performed and return 1 if so.
201
+ *
202
+ * @remarks
203
+ * Useful for counting the number of updates to do.
204
+ *
205
+ * @param {string|undefined } current The current value (if undefined then no update is required)
206
+ * @param {string|undefined } newString The new value (if undefined then no update is required)
207
+ *
208
+ * @returns 1 if `current !== newString` and 0 if they are equal or at least one is undefined.
209
+ */
200
210
function updatedToInt (
201
211
current : string | undefined ,
202
212
newString : string | undefined ,
You can’t perform that action at this time.
0 commit comments