Skip to content

Commit

Permalink
[XrdXrootd] Remove redundant null pointer check
Browse files Browse the repository at this point in the history
The variable jkey is already checked to be non-null a few lines above.
  • Loading branch information
amadio committed Nov 26, 2024
1 parent 9611aa2 commit 3ac3ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdXrootd/XrdXrootdJob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ int XrdXrootdJob::Schedule(const char *jkey,
// First find if this is a duplicate or create a new one
//
myMutex.Lock();
if (!(Opts & JOB_Unique) && jkey && (jp = JobTable.Find(jkey)))
if (!(Opts & JOB_Unique) && (jp = JobTable.Find(jkey)))
{if (jp->Status == XrdXrootdJob2Do::Job_Done)
{rc = sendResult(resp, args[0], jp);
myMutex.UnLock();
Expand Down

0 comments on commit 3ac3ccc

Please sign in to comment.